mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
ui-log.c: handle lightweight tags when printing commit decorations
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
1bbe04c2c0
commit
0730ee6ea4
4
ui-log.c
4
ui-log.c
@ -53,6 +53,10 @@ void show_commit_decorations(struct commit *commit)
|
|||||||
strncpy(buf, deco->name + 15, sizeof(buf) - 1);
|
strncpy(buf, deco->name + 15, sizeof(buf) - 1);
|
||||||
cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf);
|
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/")) {
|
else if (!prefixcmp(deco->name, "refs/remotes/")) {
|
||||||
strncpy(buf, deco->name + 13, sizeof(buf) - 1);
|
strncpy(buf, deco->name + 13, sizeof(buf) - 1);
|
||||||
cgit_log_link(buf, NULL, "remote-deco", NULL,
|
cgit_log_link(buf, NULL, "remote-deco", NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user