From 0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 16 Aug 2009 19:52:27 +0200 Subject: ui-log.c: handle lightweight tags when printing commit decorations Signed-off-by: Lars Hjemli --- ui-log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index ba2ab03..0b37785 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, -- cgit v1.2.3-70-g09d2