X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6..eac1b675414722ae90df75abc727b2795bc096f0:/ui-log.c diff --git a/ui-log.c b/ui-log.c index ba2ab03..0947604 100644 --- a/ui-log.c +++ b/ui-log.c @@ -53,6 +53,10 @@ void show_commit_decorations(struct commit *commit) strncpy(buf, deco->name + 15, sizeof(buf) - 1); cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); } + else if (!prefixcmp(deco->name, "refs/tags/")) { + strncpy(buf, deco->name + 10, sizeof(buf) - 1); + cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); + } else if (!prefixcmp(deco->name, "refs/remotes/")) { strncpy(buf, deco->name + 13, sizeof(buf) - 1); cgit_log_link(buf, NULL, "remote-deco", NULL, @@ -62,7 +66,7 @@ void show_commit_decorations(struct commit *commit) else { strncpy(buf, deco->name, sizeof(buf) - 1); cgit_commit_link(buf, NULL, "deco", ctx.qry.head, - sha1_to_hex(commit->object.sha1)); + sha1_to_hex(commit->object.sha1), 0); } deco = deco->next; } @@ -85,7 +89,7 @@ void print_commit(struct commit *commit) htmlf("