diff options
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -19,6 +19,7 @@ | |||
19 | #include <xdiff-interface.h> | 19 | #include <xdiff-interface.h> |
20 | #include <xdiff/xdiff.h> | 20 | #include <xdiff/xdiff.h> |
21 | #include <utf8.h> | 21 | #include <utf8.h> |
22 | #include <notes.h> | ||
22 | 23 | ||
23 | 24 | ||
24 | /* | 25 | /* |
@@ -72,6 +73,8 @@ struct cgit_repo { | |||
72 | int snapshots; | 73 | int snapshots; |
73 | int enable_log_filecount; | 74 | int enable_log_filecount; |
74 | int enable_log_linecount; | 75 | int enable_log_linecount; |
76 | int enable_remote_branches; | ||
77 | int enable_subject_links; | ||
75 | int max_stats; | 78 | int max_stats; |
76 | time_t mtime; | 79 | time_t mtime; |
77 | struct cgit_filter *about_filter; | 80 | struct cgit_filter *about_filter; |
@@ -143,6 +146,11 @@ struct cgit_query { | |||
143 | int nohead; | 146 | int nohead; |
144 | char *sort; | 147 | char *sort; |
145 | int showmsg; | 148 | int showmsg; |
149 | int ssdiff; | ||
150 | int show_all; | ||
151 | int context; | ||
152 | int ignorews; | ||
153 | char *vpath; | ||
146 | }; | 154 | }; |
147 | 155 | ||
148 | struct cgit_config { | 156 | struct cgit_config { |
@@ -159,6 +167,8 @@ struct cgit_config { | |||
159 | char *logo; | 167 | char *logo; |
160 | char *logo_link; | 168 | char *logo_link; |
161 | char *module_link; | 169 | char *module_link; |
170 | char *project_list; | ||
171 | char *readme; | ||
162 | char *robots; | 172 | char *robots; |
163 | char *root_title; | 173 | char *root_title; |
164 | char *root_desc; | 174 | char *root_desc; |
@@ -175,25 +185,33 @@ struct cgit_config { | |||
175 | int cache_static_ttl; | 185 | int cache_static_ttl; |
176 | int embedded; | 186 | int embedded; |
177 | int enable_filter_overrides; | 187 | int enable_filter_overrides; |
188 | int enable_gitweb_owner; | ||
178 | int enable_index_links; | 189 | int enable_index_links; |
179 | int enable_log_filecount; | 190 | int enable_log_filecount; |
180 | int enable_log_linecount; | 191 | int enable_log_linecount; |
192 | int enable_remote_branches; | ||
193 | int enable_subject_links; | ||
181 | int enable_tree_linenumbers; | 194 | int enable_tree_linenumbers; |
182 | int local_time; | 195 | int local_time; |
196 | int max_atom_items; | ||
183 | int max_repo_count; | 197 | int max_repo_count; |
184 | int max_commit_count; | 198 | int max_commit_count; |
185 | int max_lock_attempts; | 199 | int max_lock_attempts; |
186 | int max_msg_len; | 200 | int max_msg_len; |
187 | int max_repodesc_len; | 201 | int max_repodesc_len; |
202 | int max_blob_size; | ||
188 | int max_stats; | 203 | int max_stats; |
189 | int nocache; | 204 | int nocache; |
190 | int noplainemail; | 205 | int noplainemail; |
191 | int noheader; | 206 | int noheader; |
192 | int renamelimit; | 207 | int renamelimit; |
208 | int remove_suffix; | ||
209 | int section_from_path; | ||
193 | int snapshots; | 210 | int snapshots; |
194 | int summary_branches; | 211 | int summary_branches; |
195 | int summary_log; | 212 | int summary_log; |
196 | int summary_tags; | 213 | int summary_tags; |
214 | int ssdiff; | ||
197 | struct string_list mimetypes; | 215 | struct string_list mimetypes; |
198 | struct cgit_filter *about_filter; | 216 | struct cgit_filter *about_filter; |
199 | struct cgit_filter *commit_filter; | 217 | struct cgit_filter *commit_filter; |
@@ -268,14 +286,16 @@ extern void *cgit_free_commitinfo(struct commitinfo *info); | |||
268 | extern int cgit_diff_files(const unsigned char *old_sha1, | 286 | extern int cgit_diff_files(const unsigned char *old_sha1, |
269 | const unsigned char *new_sha1, | 287 | const unsigned char *new_sha1, |
270 | unsigned long *old_size, unsigned long *new_size, | 288 | unsigned long *old_size, unsigned long *new_size, |
271 | int *binary, linediff_fn fn); | 289 | int *binary, int context, int ignorews, |
290 | linediff_fn fn); | ||
272 | 291 | ||
273 | extern void cgit_diff_tree(const unsigned char *old_sha1, | 292 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
274 | const unsigned char *new_sha1, | 293 | const unsigned char *new_sha1, |
275 | filepair_fn fn, const char *prefix); | 294 | filepair_fn fn, const char *prefix, int ignorews); |
276 | 295 | ||
277 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); | 296 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
278 | 297 | ||
298 | __attribute__((format (printf,1,2))) | ||
279 | extern char *fmt(const char *format,...); | 299 | extern char *fmt(const char *format,...); |
280 | 300 | ||
281 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); | 301 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
@@ -291,4 +311,6 @@ extern int cgit_close_filter(struct cgit_filter *filter); | |||
291 | 311 | ||
292 | extern int readfile(const char *path, char **buf, size_t *size); | 312 | extern int readfile(const char *path, char **buf, size_t *size); |
293 | 313 | ||
314 | extern char *expand_macros(const char *txt); | ||
315 | |||
294 | #endif /* CGIT_H */ | 316 | #endif /* CGIT_H */ |