diff options
author | Lars Hjemli | 2007-10-27 10:36:53 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-10-27 10:53:27 +0200 |
commit | 7937d06090dd5e19145ec6fa8befc5770954b30c (patch) | |
tree | bb058aa0b5e54aabcad6a2ca6416bcac4b636615 /cgit.c | |
parent | 8efb05f98ad389d1b7f5aac17838401908622dad (diff) | |
download | cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.tar.gz cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.tar.bz2 cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.zip |
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 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -103,6 +103,9 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
103 | case CMD_COMMIT: | 103 | case CMD_COMMIT: |
104 | cgit_print_commit(cgit_query_sha1); | 104 | cgit_print_commit(cgit_query_sha1); |
105 | break; | 105 | break; |
106 | case CMD_REFS: | ||
107 | cgit_print_refs(); | ||
108 | break; | ||
106 | case CMD_TAG: | 109 | case CMD_TAG: |
107 | cgit_print_tag(cgit_query_sha1); | 110 | cgit_print_tag(cgit_query_sha1); |
108 | break; | 111 | break; |