|
diff --git a/cgit.h b/cgit.h index bb8f598..1bdfbc6 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -141,16 +141,17 @@ struct cgit_query { |
141 | char *url; |
141 | char *url; |
142 | char *period; |
142 | char *period; |
143 | int ofs; |
143 | int ofs; |
144 | int nohead; |
144 | int nohead; |
145 | char *sort; |
145 | char *sort; |
146 | int showmsg; |
146 | int showmsg; |
147 | int ssdiff; |
147 | int ssdiff; |
148 | int context; |
148 | int context; |
| |
149 | int ignorews; |
149 | char *vpath; |
150 | char *vpath; |
150 | }; |
151 | }; |
151 | |
152 | |
152 | struct cgit_config { |
153 | struct cgit_config { |
153 | char *agefile; |
154 | char *agefile; |
154 | char *cache_root; |
155 | char *cache_root; |
155 | char *clone_prefix; |
156 | char *clone_prefix; |
156 | char *css; |
157 | char *css; |
@@ -270,21 +271,22 @@ extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); |
270 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
271 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
271 | int flags, void *cb_data); |
272 | int flags, void *cb_data); |
272 | |
273 | |
273 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
274 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
274 | |
275 | |
275 | extern int cgit_diff_files(const unsigned char *old_sha1, |
276 | extern int cgit_diff_files(const unsigned char *old_sha1, |
276 | const unsigned char *new_sha1, |
277 | const unsigned char *new_sha1, |
277 | unsigned long *old_size, unsigned long *new_size, |
278 | unsigned long *old_size, unsigned long *new_size, |
278 | int *binary, int context, linediff_fn fn); |
279 | int *binary, int context, int ignorews, |
| |
280 | linediff_fn fn); |
279 | |
281 | |
280 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
282 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
281 | const unsigned char *new_sha1, |
283 | const unsigned char *new_sha1, |
282 | filepair_fn fn, const char *prefix); |
284 | filepair_fn fn, const char *prefix, int ignorews); |
283 | |
285 | |
284 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
286 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
285 | |
287 | |
286 | extern char *fmt(const char *format,...); |
288 | extern char *fmt(const char *format,...); |
287 | |
289 | |
288 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
290 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
289 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
291 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
290 | extern void cgit_parse_url(const char *url); |
292 | extern void cgit_parse_url(const char *url); |
|