mirror of
https://git.zx2c4.com/cgit
synced 2024-11-29 20:06:21 +00:00
Teach cgit_object_link() about tag objects
This makes random tag links more helpfull, e.g. when a branch head references a tag object, link to the tag page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
cbcdbcf2bf
commit
fc5880fab8
@ -272,6 +272,9 @@ void cgit_object_link(struct object *obj)
|
|||||||
} else if (obj->type == OBJ_TREE) {
|
} else if (obj->type == OBJ_TREE) {
|
||||||
page = "tree";
|
page = "tree";
|
||||||
arg = "id";
|
arg = "id";
|
||||||
|
} else if (obj->type == OBJ_TAG) {
|
||||||
|
page = "tag";
|
||||||
|
arg = "id";
|
||||||
} else {
|
} else {
|
||||||
page = "blob";
|
page = "blob";
|
||||||
arg = "id";
|
arg = "id";
|
||||||
|
Loading…
Reference in New Issue
Block a user