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:
Lars Hjemli 2007-10-28 15:40:47 +01:00
父節點 cbcdbcf2bf
當前提交 fc5880fab8
共有 1 個文件被更改,包括 3 次插入0 次删除

查看文件

@ -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";