summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2007-06-17 12:53:02 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-06-17 12:53:02 (UTC)
commit42a7eb9c73457319a3fd5441ff26046fc9b31dad (patch) (unidiff)
tree4771b955e031005e7c222ef0cbabb719f7cd003a /cgit.h
parent48c487d72daef7e71683a85f775db8d36ab20341 (diff)
downloadcgit-42a7eb9c73457319a3fd5441ff26046fc9b31dad.zip
cgit-42a7eb9c73457319a3fd5441ff26046fc9b31dad.tar.gz
cgit-42a7eb9c73457319a3fd5441ff26046fc9b31dad.tar.bz2
Add cgit_commit_link() + support for id=sha1 to commit view
This adds a function to generate links to the commit page and extends said page to use id from querystring as primary revision specified (fallback to h). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index b2f6361..c276a24 100644
--- a/cgit.h
+++ b/cgit.h
@@ -202,12 +202,14 @@ extern char *cgit_pageurl(const char *reponame, const char *pagename,
202 const char *query); 202 const char *query);
203 203
204extern void cgit_tree_link(char *name, char *title, char *class, char *head, 204extern void cgit_tree_link(char *name, char *title, char *class, char *head,
205 char *rev, char *path); 205 char *rev, char *path);
206extern void cgit_log_link(char *name, char *title, char *class, char *head, 206extern void cgit_log_link(char *name, char *title, char *class, char *head,
207 char *rev, char *path); 207 char *rev, char *path);
208extern void cgit_commit_link(char *name, char *title, char *class, char *head,
209 char *rev);
208 210
209extern void cgit_print_error(char *msg); 211extern void cgit_print_error(char *msg);
210extern void cgit_print_date(time_t secs, char *format); 212extern void cgit_print_date(time_t secs, char *format);
211extern void cgit_print_age(time_t t, time_t max_relative, char *format); 213extern void cgit_print_age(time_t t, time_t max_relative, char *format);
212extern void cgit_print_docstart(char *title, struct cacheitem *item); 214extern void cgit_print_docstart(char *title, struct cacheitem *item);
213extern void cgit_print_docend(); 215extern void cgit_print_docend();