diff options
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -16,6 +16,7 @@ | |||
16 | #include <log-tree.h> | 16 | #include <log-tree.h> |
17 | #include <archive.h> | 17 | #include <archive.h> |
18 | #include <xdiff/xdiff.h> | 18 | #include <xdiff/xdiff.h> |
19 | #include <utf8.h> | ||
19 | 20 | ||
20 | 21 | ||
21 | /* | 22 | /* |
@@ -29,6 +30,7 @@ | |||
29 | #define CMD_SNAPSHOT 6 | 30 | #define CMD_SNAPSHOT 6 |
30 | #define CMD_TAG 7 | 31 | #define CMD_TAG 7 |
31 | #define CMD_REFS 8 | 32 | #define CMD_REFS 8 |
33 | #define CMD_PATCH 9 | ||
32 | 34 | ||
33 | /* | 35 | /* |
34 | * Dateformats used on misc. pages | 36 | * Dateformats used on misc. pages |
@@ -48,6 +50,11 @@ | |||
48 | #define TM_MONTH (TM_YEAR / 12.0) | 50 | #define TM_MONTH (TM_YEAR / 12.0) |
49 | 51 | ||
50 | 52 | ||
53 | /* | ||
54 | * Default encoding | ||
55 | */ | ||
56 | #define PAGE_ENCODING "UTF-8" | ||
57 | |||
51 | typedef void (*configfn)(const char *name, const char *value); | 58 | typedef void (*configfn)(const char *name, const char *value); |
52 | typedef void (*filepair_fn)(struct diff_filepair *pair); | 59 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
53 | typedef void (*linediff_fn)(char *line, int len); | 60 | typedef void (*linediff_fn)(char *line, int len); |
@@ -69,6 +76,7 @@ struct repoinfo { | |||
69 | char *group; | 76 | char *group; |
70 | char *module_link; | 77 | char *module_link; |
71 | char *readme; | 78 | char *readme; |
79 | char *clone_url; | ||
72 | int snapshots; | 80 | int snapshots; |
73 | int enable_log_filecount; | 81 | int enable_log_filecount; |
74 | int enable_log_linecount; | 82 | int enable_log_linecount; |
@@ -90,6 +98,7 @@ struct commitinfo { | |||
90 | unsigned long committer_date; | 98 | unsigned long committer_date; |
91 | char *subject; | 99 | char *subject; |
92 | char *msg; | 100 | char *msg; |
101 | char *msg_encoding; | ||
93 | }; | 102 | }; |
94 | 103 | ||
95 | struct taginfo { | 104 | struct taginfo { |
@@ -132,6 +141,8 @@ extern char *cgit_virtual_root; | |||
132 | extern char *cgit_script_name; | 141 | extern char *cgit_script_name; |
133 | extern char *cgit_cache_root; | 142 | extern char *cgit_cache_root; |
134 | extern char *cgit_repo_group; | 143 | extern char *cgit_repo_group; |
144 | extern char *cgit_robots; | ||
145 | extern char *cgit_clone_prefix; | ||
135 | 146 | ||
136 | extern int cgit_nocache; | 147 | extern int cgit_nocache; |
137 | extern int cgit_snapshots; | 148 | extern int cgit_snapshots; |
@@ -273,6 +284,7 @@ extern void cgit_print_commit(char *hex); | |||
273 | extern void cgit_print_refs(); | 284 | extern void cgit_print_refs(); |
274 | extern void cgit_print_tag(char *revname); | 285 | extern void cgit_print_tag(char *revname); |
275 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); | 286 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); |
287 | extern void cgit_print_patch(char *hex, struct cacheitem *item); | ||
276 | extern void cgit_print_snapshot(struct cacheitem *item, const char *head, | 288 | extern void cgit_print_snapshot(struct cacheitem *item, const char *head, |
277 | const char *hex, const char *prefix, | 289 | const char *hex, const char *prefix, |
278 | const char *filename, int snapshot); | 290 | const char *filename, int snapshot); |