mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 22:34: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
2
shared.c
2
shared.c
|
@ -66,7 +66,7 @@ int htmlfd = 0;
|
|||
int cgit_get_cmd_index(const char *cmd)
|
||||
{
|
||||
static char *cmds[] = {"log", "commit", "diff", "tree", "blob",
|
||||
"snapshot", "tag", NULL};
|
||||
"snapshot", "tag", "refs", NULL};
|
||||
int i;
|
||||
|
||||
for(i = 0; cmds[i]; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue