git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit e785d9f4e02b6bef57f2245b6f488819f82415af parent 388292df5d746bb1272ade066a26e27f62658a76 Author: Hiltjo Posthuma <hiltjo@codemadness.org> 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 @@ -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)