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>
这个提交包含在:
父节点
cbcdbcf2bf
当前提交
fc5880fab8
@ -272,6 +272,9 @@ void cgit_object_link(struct object *obj)
|
||||
} else if (obj->type == OBJ_TREE) {
|
||||
page = "tree";
|
||||
arg = "id";
|
||||
} else if (obj->type == OBJ_TAG) {
|
||||
page = "tag";
|
||||
arg = "id";
|
||||
} else {
|
||||
page = "blob";
|
||||
arg = "id";
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户