summaryrefslogtreecommitdiff
path: root/urmoms.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-12-09 22:55:34 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-09 22:55:34 +0100
commite489408b99fdf3d1aa4a80b860cecdf09c67306a (patch)
tree7bdf82f7d13a3f96cd7fcd9bd65a2b091eebf6b6 /urmoms.c
parentb634cfd86042f303dae68c2805810c7a0f9614c5 (diff)
walk revision by time and only "flat"
Diffstat (limited to 'urmoms.c')
-rw-r--r--urmoms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/urmoms.c b/urmoms.c
index 8167d0f..91ab86f 100644
--- a/urmoms.c
+++ b/urmoms.c
@@ -368,6 +368,8 @@ writelog(FILE *fp)
git_revwalk_new(&w, repo);
git_revwalk_push_head(w);
+ git_revwalk_sorting(w, GIT_SORT_TIME);
+ git_revwalk_simplify_first_parent(w);
/* TODO: also make "expanded" log ? (with message body) */
fputs("<table><thead>\n<tr><td>Age</td><td>Commit message</td><td>Author</td>"
@@ -490,6 +492,8 @@ writeatom(FILE *fp)
git_revwalk_new(&w, repo);
git_revwalk_push_head(w);
+ git_revwalk_sorting(w, GIT_SORT_TIME);
+ git_revwalk_simplify_first_parent(w);
for (i = 0; i < m && !git_revwalk_next(&id, w); i++) {
if (!(ci = commitinfo_getbyoid(&id)))