|
diff --git a/cgit.h b/cgit.h index 2f3fca1..b93e2e8 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -20,19 +20,18 @@ |
20 | |
20 | |
21 | /* |
21 | /* |
22 | * The valid cgit repo-commands |
22 | * The valid cgit repo-commands |
23 | */ |
23 | */ |
24 | #define CMD_LOG 1 |
24 | #define CMD_LOG 1 |
25 | #define CMD_COMMIT 2 |
25 | #define CMD_COMMIT 2 |
26 | #define CMD_DIFF 3 |
26 | #define CMD_DIFF 3 |
27 | #define CMD_TREE 4 |
27 | #define CMD_TREE 4 |
28 | #define CMD_VIEW 5 |
28 | #define CMD_BLOB 5 |
29 | #define CMD_BLOB 6 |
29 | #define CMD_SNAPSHOT 6 |
30 | #define CMD_SNAPSHOT 7 |
| |
31 | |
30 | |
32 | |
31 | |
33 | /* |
32 | /* |
34 | * Dateformats used on misc. pages |
33 | * Dateformats used on misc. pages |
35 | */ |
34 | */ |
36 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S" |
35 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S" |
37 | #define FMT_SHORTDATE "%Y-%m-%d" |
36 | #define FMT_SHORTDATE "%Y-%m-%d" |
38 | |
37 | |
@@ -210,19 +209,18 @@ extern void cgit_print_docend(); |
210 | extern void cgit_print_pageheader(char *title, int show_search); |
209 | extern void cgit_print_pageheader(char *title, int show_search); |
211 | extern void cgit_print_snapshot_start(const char *mimetype, |
210 | extern void cgit_print_snapshot_start(const char *mimetype, |
212 | const char *filename, |
211 | const char *filename, |
213 | struct cacheitem *item); |
212 | struct cacheitem *item); |
214 | |
213 | |
215 | extern void cgit_print_repolist(struct cacheitem *item); |
214 | extern void cgit_print_repolist(struct cacheitem *item); |
216 | extern void cgit_print_summary(); |
215 | extern void cgit_print_summary(); |
217 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); |
216 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); |
218 | extern void cgit_print_view(const char *hex, char *path); |
| |
219 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); |
217 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); |
220 | extern void cgit_print_tree(const char *rev, const char *hex, char *path); |
218 | extern void cgit_print_tree(const char *rev, char *path); |
221 | extern void cgit_print_commit(const char *hex); |
219 | extern void cgit_print_commit(const char *hex); |
222 | extern void cgit_print_diff(const char *head, const char *old_hex, const char *new_hex, |
220 | extern void cgit_print_diff(const char *head, const char *old_hex, const char *new_hex, |
223 | char *path); |
221 | char *path); |
224 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
222 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
225 | const char *format, const char *prefix, |
223 | const char *format, const char *prefix, |
226 | const char *filename); |
224 | const char *filename); |
227 | |
225 | |
228 | #endif /* CGIT_H */ |
226 | #endif /* CGIT_H */ |
|