summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
Diffstat (limited to 'file')
-rw-r--r--file/git-hist.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index bfb3bc3..fd3d455 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -34,6 +34,9 @@
static struct hist *history = NULL;
+/* ----- History retrieval ------------------------------------------------- */
+
+
static struct hist *new_commit(unsigned branch)
{
struct hist *h;
@@ -160,6 +163,9 @@ struct hist *vcs_git_hist(const char *path)
}
+/* ----- Get information about commit -------------------------------------- */
+
+
char *vcs_git_get_rev(struct hist *h)
{
const git_oid *oid = git_commit_id(h->commit);
@@ -214,6 +220,9 @@ fail:
}
+/* ----- Iteration --------------------------------------------------------- */
+
+
/*
* We use the "seen" counter to make sure we only show a commit after all newer
* commits have been shown. We could accomplish the same by reordering the
@@ -245,6 +254,9 @@ void hist_iterate(struct hist *hist,
}
+/* ----- Textual dump (mainly for debugging) ------------------------------- */
+
+
static void dump_one(void *user, struct hist *h)
{
git_buf buf = { 0 };