stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit d12a58cff353b4174e2a029502b85f7719fe4e1e parent 17369c2b4e263c9721ba3b5564eed3251eb20fda Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 9 Dec 2015 22:55:34 +0100 walk revision by time and only "flat" Diffstat:
| M | urmoms.c | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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)))