summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 15:16:42 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-08-27 15:16:42 (GMT)
commitb50be73df03140fd263119d39545b58d6954b561 (patch)
tree402f8394f8741c4f459599837509bc8c8834287c /file
parent223875a1d7274c2bf4644f4f9a2ba44e371824c3 (diff)
downloadeeshow-b50be73df03140fd263119d39545b58d6954b561.zip
eeshow-b50be73df03140fd263119d39545b58d6954b561.tar.gz
eeshow-b50be73df03140fd263119d39545b58d6954b561.tar.bz2
file/git-hist.c: add section comments
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 };