path: root/main.c
diff options
authorWerner Almesberger <>2016-08-28 00:46:04 -0300
committerWerner Almesberger <>2016-08-28 01:34:15 -0300
commit413f1b37bdee7219299c0c87493e4503703605e2 (patch)
treecf6a40e767e35cc25fa613aadefd102b9c26a35d /main.c
parent84150d6e16b9ca9892edacafaedbf8dfc4e84002 (diff)
file/git-hist.c, gui/: support multiple heads; update GUI accordingly
While we try to iterate HEAD first, this won't result in HEAD coming out on top if there is another branch that is ahead of HEAD. While we could try some heuristics to avoid this, it'll be better to just sort the whole list first by (partial) git history order and then by date. That way, the result will never be too far from what a human user will expect to see.
Diffstat (limited to 'main.c')
1 files changed, 1 insertions, 4 deletions
diff --git a/main.c b/main.c
index ff57615..cc56156 100644
--- a/main.c
+++ b/main.c
@@ -223,10 +223,7 @@ int main(int argc, char **argv)
if (history) {
- struct vcs_history *vcs_history = vcs_git_history(history);
- struct vcs_hist *h = vcs_head(vcs_history);
- dump_hist(vcs_history, h);
+ dump_hist(vcs_git_history(history));
return 0;