stagit

stagit (https://www.codemadness.org/stagit.html) fork
git clone git://bsandro.tech/stagit
Log | Files | Refs | README | LICENSE

commit b38f2cabef82dcfb1b0254ab8a8b4878f2da6de6
parent 1b6a24c893866a604d9b7bc425f9b23706f39912
Author: bsandro <brian.drosan@gmail.com>
Date:   Sun,  8 Aug 2021 04:32:46 +0300

List all changesets from all branches sorted by time

Index page logo now is a hyperlink pointing at "/".

Diffstat:
Mstagit-index.c | 4++--
Mstagit.c | 3++-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -72,7 +72,7 @@ writeheader(FILE *fp) fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); fputs("</head>\n<body>\n", fp); - fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" + fprintf(fp, "<table>\n<tr><td><a href="/"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a></td>\n" "<td><span class=\"desc\">", relpath); xmlencode(fp, description, strlen(description)); fputs("</span></td></tr><tr><td></td><td>\n" @@ -100,7 +100,7 @@ writelog(FILE *fp) int ret = 0; git_revwalk_new(&w, repo); - git_revwalk_push_head(w); + git_revwalk_push_glob(w, "refs/heads/*"); if (git_revwalk_next(&id, w) || git_commit_lookup(&commit, repo, &id)) { diff --git a/stagit.c b/stagit.c @@ -742,7 +742,8 @@ writelog(FILE *fp, const git_oid *oid) int r; git_revwalk_new(&w, repo); - git_revwalk_push(w, oid); + git_revwalk_push_glob(w, "refs/heads/*"); + git_revwalk_sorting(w, GIT_SORT_TIME); while (!git_revwalk_next(&id, w)) { relpath = "";