Introduction
Introduction Statistics Contact Development Disclaimer Help
twalk revision by time and only "flat" - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit e489408b99fdf3d1aa4a80b860cecdf09c67306a
parent b634cfd86042f303dae68c2805810c7a0f9614c5
Author: Hiltjo Posthuma <[email protected]>
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
t@@ -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>Auth…
t@@ -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)))
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.