aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-10-27 17:36:53 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-10-27 17:53:27 (JST)
commit7937d06090dd5e19145ec6fa8befc5770954b30c (patch)
treebb058aa0b5e54aabcad6a2ca6416bcac4b636615 /shared.c
parent8efb05f98ad389d1b7f5aac17838401908622dad (diff)
downloadcgit-7937d06090dd5e19145ec6fa8befc5770954b30c.zip
cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.tar.gz
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>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index ff600db..7eb2b0e 100644
--- a/shared.c
+++ b/shared.c
@@ -66,7 +66,7 @@ int htmlfd = 0;
66int cgit_get_cmd_index(const char *cmd) 66int cgit_get_cmd_index(const char *cmd)
67{ 67{
68 static char *cmds[] = {"log", "commit", "diff", "tree", "blob", 68 static char *cmds[] = {"log", "commit", "diff", "tree", "blob",
69 "snapshot", "tag", NULL}; 69 "snapshot", "tag", "refs", NULL};
70 int i; 70 int i;
71 71
72 for(i = 0; cmds[i]; i++) 72 for(i = 0; cmds[i]; i++)