aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
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 /cgit.h
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 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index a1fe527..d9a15f4 100644
--- a/cgit.h
+++ b/cgit.h
@@ -28,6 +28,7 @@
28#define CMD_BLOB 5 28#define CMD_BLOB 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/*
33 * Dateformats used on misc. pages 34 * Dateformats used on misc. pages
@@ -260,6 +261,7 @@ extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *
260extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); 261extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path);
261extern void cgit_print_tree(const char *rev, char *path); 262extern void cgit_print_tree(const char *rev, char *path);
262extern void cgit_print_commit(char *hex); 263extern void cgit_print_commit(char *hex);
264extern void cgit_print_refs();
263extern void cgit_print_tag(char *revname); 265extern void cgit_print_tag(char *revname);
264extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); 266extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix);
265extern void cgit_print_snapshot(struct cacheitem *item, const char *head, 267extern void cgit_print_snapshot(struct cacheitem *item, const char *head,