stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 4011430d5117b1a33e7a3855d8d83c2862d5552d
parent 1db52961131a913a60e96889ae210daede9b44e6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu,  7 Feb 2019 21:02:37 +0100

change order of commits in log from most recent to old to applied order

Diffstat:
MLICENSE | 2+-
Mstagit-gopher-index.c | 1-
Mstagit-gopher.1 | 6+++---
Mstagit-gopher.c | 2--
4 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ MIT/X Consortium License -(c) 2015-2018 Hiltjo Posthuma <hiltjo@codemadness.org> +(c) 2015-2019 Hiltjo Posthuma <hiltjo@codemadness.org> (c) 2015-2016 Dimitris Papastamos <sin@2f30.org> Permission is hereby granted, free of charge, to any person obtaining a diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c @@ -163,7 +163,6 @@ 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); if (git_revwalk_next(&id, w) || diff --git a/stagit-gopher.1 b/stagit-gopher.1 @@ -1,4 +1,4 @@ -.Dd Januari 21, 2018 +.Dd February 6, 2019 .Dt STAGIT-GOPHER 1 .Os .Sh NAME @@ -50,8 +50,8 @@ Atom XML feed .It files.gph List of files in the latest tree, linking to the file. .It log.gph -List of commits in order of most recent to old of the commits (top to bottom), -each commit links to an index with a diffstat and diff of the commit. +List of commits in reverse chronological applied commit order, each commit +links to a page with a diffstat and diff of the commit. .It refs.gph Lists references of the repository such as branches and tags. .El diff --git a/stagit-gopher.c b/stagit-gopher.c @@ -702,7 +702,6 @@ writelog(FILE *fp, const git_oid *oid) git_revwalk_new(&w, repo); git_revwalk_push(w, oid); - git_revwalk_sorting(w, GIT_SORT_TIME); git_revwalk_simplify_first_parent(w); while (!git_revwalk_next(&id, w)) { @@ -824,7 +823,6 @@ 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++) {