all repos — cgit @ 0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104

a hyperfast web frontend for git written in c

ui-log.c: handle lightweight tags when printing commit decorations

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 16 Aug 2009 19:52:27 +0200
commit

0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104

parent

1bbe04c2c09d5dfbb2c66c4f8f490008b6e5fb25

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M ui-log.cui-log.c

@@ -53,6 +53,10 @@ else if (!prefixcmp(deco->name, "tag: refs/tags/")) {

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,