summaryrefslogtreecommitdiff
path: root/file/git-hist.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 14:43:33 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 14:43:33 -0300
commita1f64549a6691ea49c7e80fa359e1449b13ef9a0 (patch)
tree0b64fed0cac23b4d748c86e544daf0472685970d /file/git-hist.h
parent51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c (diff)
downloadeeshow-a1f64549a6691ea49c7e80fa359e1449b13ef9a0.tar.gz
eeshow-a1f64549a6691ea49c7e80fa359e1449b13ef9a0.tar.bz2
eeshow-a1f64549a6691ea49c7e80fa359e1449b13ef9a0.zip
file/git-hist.h (struct hist, struct history): prepend vcs_
Diffstat (limited to 'file/git-hist.h')
-rw-r--r--file/git-hist.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/file/git-hist.h b/file/git-hist.h
index b3b9c70..fc1e1e5 100644
--- a/file/git-hist.h
+++ b/file/git-hist.h
@@ -18,33 +18,35 @@
#include <git2.h>
-struct hist {
+struct vcs_hist {
struct git_commit *commit; /* NULL if uncommitted changes */
unsigned branch; /* branch index */
- struct hist **newer;
+ struct vcs_hist **newer;
unsigned n_newer;
- struct hist **older;
+ struct vcs_hist **older;
unsigned n_older;
- struct hist *next; /* no specific order */
+ struct vcs_hist *next; /* no specific order */
unsigned seen; /* for traversal */
};
-struct history;
+struct vcs_history;
bool vcs_git_try(const char *path);
-struct history *vcs_git_history(const char *path);
-struct hist *vcs_head(const struct history *history);
-char *vcs_git_get_rev(struct hist *h);
-const char *vcs_git_summary(struct hist *hist);
-char *vcs_git_long_for_pango(struct hist *hist,
+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);
+const char *vcs_git_summary(struct vcs_hist *hist);
+char *vcs_git_long_for_pango(struct vcs_hist *hist,
char *(*formatter)(const char *fmt, ...));
-void hist_iterate(struct history *history, struct hist *h,
- void (*fn)(void *user, struct hist *h), void *user);
-void dump_hist(struct history *history, struct hist *h);
+
+void hist_iterate(struct vcs_history *history, struct vcs_hist *h,
+ void (*fn)(void *user, struct vcs_hist *h), void *user);
+void dump_hist(struct vcs_history *history, struct vcs_hist *h);
#endif /* !FILE_GIT_HIST_H */