"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)
{