summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 19:13:51 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 19:13:51 +0100
commit9978fecb183a080c66b59a0327fbad6e5087322e (patch)
tree9705853b8c7a0495a4d92a829f5b3c71b32ead8a /stagit.c
parent512a31e81ff5e697d7ca08b6504309024cd9928d (diff)
refs: only make commit link work for tags
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index 966ee55..5bef865 100644
--- a/stagit.c
+++ b/stagit.c
@@ -842,15 +842,17 @@ writerefs(FILE *fp)
printtimeshort(fp, &(ci->author->when));
fputs("</td><td>", fp);
if (ci->summary) {
- fprintf(fp, "<a href=\"%scommit/%s.html\">",
- relpath, ci->oid);
+ if (j)
+ fprintf(fp, "<a href=\"%scommit/%s.html\">",
+ relpath, ci->oid);
if ((len = strlen(ci->summary)) > summarylen) {
xmlencode(fp, ci->summary, summarylen - 1);
fputs("…", fp);
} else {
xmlencode(fp, ci->summary, len);
}
- fputs("</a>", fp);
+ if (j)
+ fputs("</a>", fp);
}
fputs("</td><td>", fp);
if (ci->author)