aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/cgit.h b/cgit.h
index 6c6c460..e9e2718 100644
--- a/cgit.h
+++ b/cgit.h
@@ -72,6 +72,8 @@ struct cgit_repo {
72 int snapshots; 72 int snapshots;
73 int enable_log_filecount; 73 int enable_log_filecount;
74 int enable_log_linecount; 74 int enable_log_linecount;
75 int enable_remote_branches;
76 int enable_subject_links;
75 int max_stats; 77 int max_stats;
76 time_t mtime; 78 time_t mtime;
77 struct cgit_filter *about_filter; 79 struct cgit_filter *about_filter;
@@ -143,6 +145,11 @@ struct cgit_query {
143 int nohead; 145 int nohead;
144 char *sort; 146 char *sort;
145 int showmsg; 147 int showmsg;
148 int ssdiff;
149 int show_all;
150 int context;
151 int ignorews;
152 char *vpath;
146}; 153};
147 154
148struct cgit_config { 155struct cgit_config {
@@ -178,13 +185,17 @@ struct cgit_config {
178 int enable_index_links; 185 int enable_index_links;
179 int enable_log_filecount; 186 int enable_log_filecount;
180 int enable_log_linecount; 187 int enable_log_linecount;
188 int enable_remote_branches;
189 int enable_subject_links;
181 int enable_tree_linenumbers; 190 int enable_tree_linenumbers;
182 int local_time; 191 int local_time;
192 int max_atom_items;
183 int max_repo_count; 193 int max_repo_count;
184 int max_commit_count; 194 int max_commit_count;
185 int max_lock_attempts; 195 int max_lock_attempts;
186 int max_msg_len; 196 int max_msg_len;
187 int max_repodesc_len; 197 int max_repodesc_len;
198 int max_blob_size;
188 int max_stats; 199 int max_stats;
189 int nocache; 200 int nocache;
190 int noplainemail; 201 int noplainemail;
@@ -194,6 +205,7 @@ struct cgit_config {
194 int summary_branches; 205 int summary_branches;
195 int summary_log; 206 int summary_log;
196 int summary_tags; 207 int summary_tags;
208 int ssdiff;
197 struct string_list mimetypes; 209 struct string_list mimetypes;
198 struct cgit_filter *about_filter; 210 struct cgit_filter *about_filter;
199 struct cgit_filter *commit_filter; 211 struct cgit_filter *commit_filter;
@@ -268,11 +280,12 @@ extern void *cgit_free_commitinfo(struct commitinfo *info);
268extern int cgit_diff_files(const unsigned char *old_sha1, 280extern int cgit_diff_files(const unsigned char *old_sha1,
269 const unsigned char *new_sha1, 281 const unsigned char *new_sha1,
270 unsigned long *old_size, unsigned long *new_size, 282 unsigned long *old_size, unsigned long *new_size,
271 int *binary, linediff_fn fn); 283 int *binary, int context, int ignorews,
284 linediff_fn fn);
272 285
273extern void cgit_diff_tree(const unsigned char *old_sha1, 286extern void cgit_diff_tree(const unsigned char *old_sha1,
274 const unsigned char *new_sha1, 287 const unsigned char *new_sha1,
275 filepair_fn fn, const char *prefix); 288 filepair_fn fn, const char *prefix, int ignorews);
276 289
277extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); 290extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
278 291
@@ -291,4 +304,6 @@ extern int cgit_close_filter(struct cgit_filter *filter);
291 304
292extern int readfile(const char *path, char **buf, size_t *size); 305extern int readfile(const char *path, char **buf, size_t *size);
293 306
307extern char *expand_macros(const char *txt);
308
294#endif /* CGIT_H */ 309#endif /* CGIT_H */