Author: Lars Hjemli <hjemli@gmail.com>
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>
ui-shared.c | 3 +++
diff --git a/ui-shared.c b/ui-shared.c index 45105dc813ec0bad2dbcc770527149dbbf6c8256..14180105116cd27dca0d366bca7a39b531b4e08b 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -272,6 +272,9 @@ return; } 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";