Introduction
Introduction Statistics Contact Development Disclaimer Help
trefs: only make commit link work for tags - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 9978fecb183a080c66b59a0327fbad6e5087322e
parent 512a31e81ff5e697d7ca08b6504309024cd9928d
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 6 Jan 2016 19:13:51 +0100
refs: only make commit link work for tags
Diffstat:
M stagit.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/stagit.c b/stagit.c
t@@ -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.htm…
+ relpath, ci->oid);
if ((len = strlen(ci->summary)) > summarylen) {
xmlencode(fp, ci->summary, summarylen …
fputs("…", fp);
} else {
xmlencode(fp, ci->summary, len);
}
- fputs("</a>", fp);
+ if (j)
+ fputs("</a>", fp);
}
fputs("</td><td>", fp);
if (ci->author)
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.