stagit

git site generator
Contents

do not simplify the history by first-parent

Reference:
https://libgit2.org/libgit2/#HEAD/group/revwalk/git_revwalk_simplify_first_parent

Noticed on merge commits on:
https://git.simple-cc.org/scc/

Reported by quinq, thanks!

Hiltjo Posthuma hiltjo@codemadness.org

commit: 31d5c0f parent: 9e4cbe1
2 files changed, 0 insertions(+), 3 deletions(-)
Mstagit-index.c+0-1
Mstagit.c+0-2
M · stagit-index.c +0, -1
1@@ -101,7 +101,6 @@ writelog(FILE *fp)
2
3
git_revwalk_new(&w, repo);
4
git_revwalk_push_head(w);
5- git_revwalk_simplify_first_parent(w);
6
7 if
(git_revwalk_next(&id, w) ||
8
git_commit_lookup(&commit, repo, &id)) {
M · stagit.c +0, -2
 1@@ -743,7 +743,6 @@ writelog(FILE *fp, const git_oid *oid)
 2
 3
git_revwalk_new(&w, repo);
 4
git_revwalk_push(w, oid);
 5- git_revwalk_simplify_first_parent(w);
 6
 7 while
(!git_revwalk_next(&id, w)) {
 8 relpath =
"";
 9@@ -881,7 +880,6 @@ writeatom(FILE *fp, int all)
10 if (all) {
11
git_revwalk_new(&w, repo);
12
git_revwalk_push_head(w);
13- git_revwalk_simplify_first_parent(w);
14 for (i = 0; i < m &&
!git_revwalk_next(&id, w); i++) {
15 if (!(ci =
commitinfo_getbyoid(&id)))
16 break;