summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb98559)
raw | patch | inline | side by side (parent: eb98559)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 13 May 2006 21:44:21 +0000 (23:44 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Sat, 13 May 2006 21:44:21 +0000 (23:44 +0200) |
tig.c | patch | blob | history |
index c5f5419a7284649ca2cdd824f91740439d22e4c2..6788d0e8d01142d7effdc1f8493e6ce2a5837e37 100644 (file)
--- a/tig.c
+++ b/tig.c
"git log --cc --stat -n100 %s"
#define MAIN_CMD \
- "git log --stat --pretty=raw %s"
+ "git log --topo-order --stat --pretty=raw %s"
#define HELP_CMD \
"man tig 2> /dev/null"
if (!view->pipe)
return;
set_nonblocking_input(FALSE);
- pclose(view->pipe);
+ if (view->pipe == stdin)
+ fclose(view->pipe);
+ else
+ pclose(view->pipe);
view->pipe = NULL;
}
return TRUE;
}
-
static struct view_ops pager_ops = {
pager_draw,
pager_read,
pager_enter,
};
+
static bool
main_draw(struct view *view, unsigned int lineno)
{