diff options
author | Lars Hjemli | 2009-08-16 19:52:27 +0200 |
---|---|---|
committer | Lars Hjemli | 2009-08-16 20:53:20 +0200 |
commit | 0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104 (patch) | |
tree | 539784d3a0a8c836f8c59a71fd1c9463116a09d2 /ui-log.c | |
parent | 1bbe04c2c09d5dfbb2c66c4f8f490008b6e5fb25 (diff) | |
download | cgit-0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104.tar.gz cgit-0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104.tar.bz2 cgit-0730ee6ea4af45e29e7c74d4a32bde9d2d6c8104.zip |
ui-log.c: handle lightweight tags when printing commit decorations
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-log.c')
-rw-r--r-- | ui-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,10 @@ void show_commit_decorations(struct commit *commit) | |||
53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); | 53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); |
54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); | 54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); |
55 | } | 55 | } |
56 | else if (!prefixcmp(deco->name, "refs/tags/")) { | ||
57 | strncpy(buf, deco->name + 10, sizeof(buf) - 1); | ||
58 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); | ||
59 | } | ||
56 | else if (!prefixcmp(deco->name, "refs/remotes/")) { | 60 | else if (!prefixcmp(deco->name, "refs/remotes/")) { |
57 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); | 61 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); |
58 | cgit_log_link(buf, NULL, "remote-deco", NULL, | 62 | cgit_log_link(buf, NULL, "remote-deco", NULL, |