author | Lars Hjemli <hjemli@gmail.com> | 2007-10-27 08:36:53 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-10-27 08:53:27 (UTC) |
commit | 7937d06090dd5e19145ec6fa8befc5770954b30c (patch) (unidiff) | |
tree | bb058aa0b5e54aabcad6a2ca6416bcac4b636615 /cgit.h | |
parent | 8efb05f98ad389d1b7f5aac17838401908622dad (diff) | |
download | cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.zip cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.tar.gz cgit-7937d06090dd5e19145ec6fa8befc5770954b30c.tar.bz2 |
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>
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -29,4 +29,5 @@ | |||
29 | #define CMD_SNAPSHOT 6 | 29 | #define CMD_SNAPSHOT 6 |
30 | #define CMD_TAG 7 | 30 | #define CMD_TAG 7 |
31 | #define CMD_REFS 8 | ||
31 | 32 | ||
32 | /* | 33 | /* |
@@ -261,4 +262,5 @@ extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) | |||
261 | extern void cgit_print_tree(const char *rev, char *path); | 262 | extern void cgit_print_tree(const char *rev, char *path); |
262 | extern void cgit_print_commit(char *hex); | 263 | extern void cgit_print_commit(char *hex); |
264 | extern void cgit_print_refs(); | ||
263 | extern void cgit_print_tag(char *revname); | 265 | extern void cgit_print_tag(char *revname); |
264 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); | 266 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); |