summaryrefslogtreecommitdiff
path: root/file/git-hist.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-28 00:46:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-28 01:34:15 -0300
commit413f1b37bdee7219299c0c87493e4503703605e2 (patch)
treecf6a40e767e35cc25fa613aadefd102b9c26a35d /file/git-hist.h
parent84150d6e16b9ca9892edacafaedbf8dfc4e84002 (diff)
downloadeeshow-413f1b37bdee7219299c0c87493e4503703605e2.tar.gz
eeshow-413f1b37bdee7219299c0c87493e4503703605e2.tar.bz2
eeshow-413f1b37bdee7219299c0c87493e4503703605e2.zip
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 'file/git-hist.h')
-rw-r--r--file/git-hist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/file/git-hist.h b/file/git-hist.h
index 25babcd..a1b3d05 100644
--- a/file/git-hist.h
+++ b/file/git-hist.h
@@ -41,17 +41,17 @@ struct vcs_history;
bool vcs_git_try(const char *path);
struct vcs_history *vcs_git_history(const char *path);
-struct vcs_hist *vcs_head(const struct vcs_history *history);
char *vcs_git_get_rev(struct vcs_hist *h);
+bool vcs_is_empty(const struct vcs_history *history);
const char *vcs_git_summary(struct vcs_hist *hist);
char *vcs_git_summary_for_pango(struct vcs_hist *hist,
char *(*formatter)(const char *fmt, ...));
char *vcs_git_long_for_pango(struct vcs_hist *hist,
char *(*formatter)(const char *fmt, ...));
-void hist_iterate(struct vcs_history *history, struct vcs_hist *h,
+void hist_iterate(struct vcs_history *history,
void (*fn)(void *user, struct vcs_hist *h), void *user);
-void dump_hist(struct vcs_history *history, struct vcs_hist *h);
+void dump_hist(struct vcs_history *history);
#endif /* !FILE_GIT_HIST_H */