stagit

personal fork of static git page generator
git clone https://a3nm.net/git/stagit/
Log | Files | Refs | README | LICENSE

commit 443d18159b41cb23c475fb60d1af0d53417f19d8
parent 60943c1dd49dd9d035bc98d5d8df85a12979d8a7
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  9 May 2018 21:02:50 +0200

index.html instead of log.html

Diffstat:
stagit.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -359,7 +359,7 @@ writeheader(FILE *fp, const char *title) fputs("</a></td></tr>", fp); } fputs("<tr><td></td><td>\n", fp); - fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath); + fprintf(fp, "<a href=\"%s\">Log</a> | ", relpath); fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath); fprintf(fp, "<a href=\"%srefs.html\">Refs</a>", relpath); if (hassubmodules) @@ -597,7 +597,7 @@ writelog(FILE *fp, const git_oid *oid) if (!(ci = commitinfo_getbyoid(&id))) break; - /* diffstat: for stagit HTML required for the log.html line */ + /* diffstat: for stagit HTML required for the index.html line */ if (commitinfo_getstats(ci) == -1) goto err; @@ -1130,7 +1130,7 @@ main(int argc, char *argv[]) git_object_free(obj); /* log for HEAD */ - fp = efopen("log.html", "w"); + fp = efopen("index.html", "w"); relpath = ""; mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO); writeheader(fp, "Log"); @@ -1161,7 +1161,7 @@ main(int argc, char *argv[]) writelog(fp, head); if (rcachefp) { - /* append previous log to log.html and the new cache */ + /* append previous log to index.html and the new cache */ while (!feof(rcachefp)) { n = fread(buf, 1, sizeof(buf), rcachefp); if (ferror(rcachefp))