|
diff --git a/cgit.h b/cgit.h index f990b15..bb8f598 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -140,16 +140,17 @@ struct cgit_query { |
140 | char *mimetype; |
140 | char *mimetype; |
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 | char *vpath; |
149 | char *vpath; |
149 | }; |
150 | }; |
150 | |
151 | |
151 | struct cgit_config { |
152 | struct cgit_config { |
152 | char *agefile; |
153 | char *agefile; |
153 | char *cache_root; |
154 | char *cache_root; |
154 | char *clone_prefix; |
155 | char *clone_prefix; |
155 | char *css; |
156 | char *css; |
@@ -269,17 +270,17 @@ extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); |
269 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
270 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
270 | int flags, void *cb_data); |
271 | int flags, void *cb_data); |
271 | |
272 | |
272 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
273 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
273 | |
274 | |
274 | extern int cgit_diff_files(const unsigned char *old_sha1, |
275 | extern int cgit_diff_files(const unsigned char *old_sha1, |
275 | const unsigned char *new_sha1, |
276 | const unsigned char *new_sha1, |
276 | unsigned long *old_size, unsigned long *new_size, |
277 | unsigned long *old_size, unsigned long *new_size, |
277 | int *binary, linediff_fn fn); |
278 | int *binary, int context, linediff_fn fn); |
278 | |
279 | |
279 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
280 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
280 | const unsigned char *new_sha1, |
281 | const unsigned char *new_sha1, |
281 | filepair_fn fn, const char *prefix); |
282 | filepair_fn fn, const char *prefix); |
282 | |
283 | |
283 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
284 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
284 | |
285 | |
285 | extern char *fmt(const char *format,...); |
286 | extern char *fmt(const char *format,...); |
|