ctucx.git: stagit

ctucx' stagit fork

commit 1edd1932b5c07462f6ad4387f2c3d2ddaa24658e
parent aac2476448d8f48e614080c71e3e8b69bbc1d07a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 28 May 2022 17:50:03 +0200

about: rename to summary
1 file changed, 6 insertions(+), 6 deletions(-)
M
stagit.c
|
12
++++++------
diff --git a/stagit.c b/stagit.c
@@ -576,10 +576,10 @@ writeheader(FILE *fp, const char *title, const char *mode)
 	fputs("</header>\n<nav>", fp);
 
 	if (readme) {
-		if (!strcmp(mode, "about")) {
-			fprintf(fp, "<a class=\"active\" href=\"%sabout.html\">about</a>", relpath);
+		if (!strcmp(mode, "summary")) {
+			fprintf(fp, "<a class=\"active\" href=\"%sindex.html\">summary</a>", relpath);
 		} else {
-			fprintf(fp, "<a href=\"%sabout.html\">about</a>", relpath);
+			fprintf(fp, "<a href=\"%sindex.html\">summary</a>", relpath);
 		}
 	}
 

@@ -1407,10 +1407,10 @@ main(int argc, char *argv[])
 		submodules = ".gitmodules";
 	git_object_free(obj);
 
-	/* about page */
+	/* summary page */
 	if (readme) {
-		fp = efopen("about.html", "w");
-		writeheader(fp, "about", "about");
+		fp = efopen("index.html", "w");
+		writeheader(fp, "summary", "summary");
 
 		git_revwalk_new(&walker, repo);
 		git_revwalk_push(walker, head);