]> git.armaanb.net Git - stagit.git/commitdiff
refs: add link to log per branch
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 3 Jan 2016 20:21:30 +0000 (21:21 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 3 Jan 2016 20:21:30 +0000 (21:21 +0100)
stagit.c

index 4b568295f0afd8f359dfe5f826cc3cd982b716bd..9190b7251622f581dd4b0d6a524f7eea91b65845 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -820,9 +820,11 @@ writebranches(FILE *fp)
 
                relpath = "";
 
-               fputs("<tr><td>", fp);
+               fputs("<tr><td><a href=\"log-", fp);
                xmlencode(fp, branchname, strlen(branchname));
-               fputs("</td><td>", fp);
+               fputs(".html\">", fp);
+               xmlencode(fp, branchname, strlen(branchname));
+               fputs("</a></td><td>", fp);
                if (ci->author)
                        printtimeshort(fp, &(ci->author->when));
                fputs("</td><td>", fp);