stagit

custom fork of stagit
Index Commits Files Refs README LICENSE
commit 207b8102e2e99ad5f74cfdba44864369155ab0fb
parent d19946134d0e099d300e17f85ca3ed90203ef4d8
Author: mjkloeckner <martin.cachari@gmail.com>
Date:   Wed,  4 Jan 2023 17:13:25 -0300

fix parent directory dir-size anchor

Diffstat:
Mstagit.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -1138,8 +1138,11 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
 
         fputs("<td id=\"file-mode\">d---------</td><td><a class=\"dir\" href=\"../", fp);
         xmlencode(fp, parent, strlen(parent));
+        fputs(".html\">..</a></td>", fp);
 
-        fputs(".html\">..</a></td><td class=\"num\" align=\"right\"></td></tr>\n", fp);
+        fputs("<td id=\"dir-size\"><a href=\"../", fp);
+        xmlencode(fp, parent, strlen(parent));
+        fputs(".html\">.</a></td></tr>\n", fp);
     }
 
     count = git_tree_entrycount(tree);