mirror of
https://git.zx2c4.com/cgit
synced 2025-06-29 21:04:32 +02:00
Add support for refs view
This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags, which can be used to print _all_ branches and/or tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
8efb05f98a
commit
7937d06090
5 changed files with 37 additions and 2 deletions
3
cgit.c
3
cgit.c
|
@ -103,6 +103,9 @@ static void cgit_print_repo_page(struct cacheitem *item)
|
|||
case CMD_COMMIT:
|
||||
cgit_print_commit(cgit_query_sha1);
|
||||
break;
|
||||
case CMD_REFS:
|
||||
cgit_print_refs();
|
||||
break;
|
||||
case CMD_TAG:
|
||||
cgit_print_tag(cgit_query_sha1);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue