neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit fc5880fab8b9afc589aaadd1299c34a6ef2a3c2d
parent cbcdbcf2bff23113fe81df8f11fe7843b8ed637e
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Sun, 28 Oct 2007 15:40:47 +0100

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>

Diffstat:
Mui-shared.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c @@ -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";