aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/cgit.h b/cgit.h
index 6c6c460..4090cd4 100644
--- a/cgit.h
+++ b/cgit.h
@@ -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
148struct cgit_config { 156struct cgit_config {
@@ -159,6 +167,7 @@ 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;
162 char *robots; 171 char *robots;
163 char *root_title; 172 char *root_title;
164 char *root_desc; 173 char *root_desc;
@@ -175,25 +184,32 @@ struct cgit_config {
175 int cache_static_ttl; 184 int cache_static_ttl;
176 int embedded; 185 int embedded;
177 int enable_filter_overrides; 186 int enable_filter_overrides;
187 int enable_gitweb_owner;
178 int enable_index_links; 188 int enable_index_links;
179 int enable_log_filecount; 189 int enable_log_filecount;
180 int enable_log_linecount; 190 int enable_log_linecount;
191 int enable_remote_branches;
192 int enable_subject_links;
181 int enable_tree_linenumbers; 193 int enable_tree_linenumbers;
182 int local_time; 194 int local_time;
195 int max_atom_items;
183 int max_repo_count; 196 int max_repo_count;
184 int max_commit_count; 197 int max_commit_count;
185 int max_lock_attempts; 198 int max_lock_attempts;
186 int max_msg_len; 199 int max_msg_len;
187 int max_repodesc_len; 200 int max_repodesc_len;
201 int max_blob_size;
188 int max_stats; 202 int max_stats;
189 int nocache; 203 int nocache;
190 int noplainemail; 204 int noplainemail;
191 int noheader; 205 int noheader;
192 int renamelimit; 206 int renamelimit;
207 int remove_suffix;
193 int snapshots; 208 int snapshots;
194 int summary_branches; 209 int summary_branches;
195 int summary_log; 210 int summary_log;
196 int summary_tags; 211 int summary_tags;
212 int ssdiff;
197 struct string_list mimetypes; 213 struct string_list mimetypes;
198 struct cgit_filter *about_filter; 214 struct cgit_filter *about_filter;
199 struct cgit_filter *commit_filter; 215 struct cgit_filter *commit_filter;
@@ -268,11 +284,12 @@ extern void *cgit_free_commitinfo(struct commitinfo *info);
268extern int cgit_diff_files(const unsigned char *old_sha1, 284extern int cgit_diff_files(const unsigned char *old_sha1,
269 const unsigned char *new_sha1, 285 const unsigned char *new_sha1,
270 unsigned long *old_size, unsigned long *new_size, 286 unsigned long *old_size, unsigned long *new_size,
271 int *binary, linediff_fn fn); 287 int *binary, int context, int ignorews,
288 linediff_fn fn);
272 289
273extern void cgit_diff_tree(const unsigned char *old_sha1, 290extern void cgit_diff_tree(const unsigned char *old_sha1,
274 const unsigned char *new_sha1, 291 const unsigned char *new_sha1,
275 filepair_fn fn, const char *prefix); 292 filepair_fn fn, const char *prefix, int ignorews);
276 293
277extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); 294extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
278 295
@@ -291,4 +308,6 @@ extern int cgit_close_filter(struct cgit_filter *filter);
291 308
292extern int readfile(const char *path, char **buf, size_t *size); 309extern int readfile(const char *path, char **buf, size_t *size);
293 310
311extern char *expand_macros(const char *txt);
312
294#endif /* CGIT_H */ 313#endif /* CGIT_H */