summaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-04-20 11:14:36 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-04-20 12:49:45 +0200
commit6308005fbda0a52416ad6eefe0d3a51b7c951e18 (patch)
treebcfd14ae16bf778469f13955c86e24006de836db /cgit.h
parent389cc17357e2040c9542d3e085f64a8d2f085e9a (diff)
downloadcgit-6308005fbda0a52416ad6eefe0d3a51b7c951e18.tar.gz
cgit-6308005fbda0a52416ad6eefe0d3a51b7c951e18.tar.bz2
cgit-6308005fbda0a52416ad6eefe0d3a51b7c951e18.zip
shared: make cgit_diff_tree_cb public
This will allow us to use this nice wrapper function elsewhere, avoiding dealing with the diff queue when we only need to inspect a filepair. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 850b792..b56e756 100644
--- a/cgit.h
+++ b/cgit.h
@@ -315,6 +315,9 @@ extern int cgit_refs_cb(const char *refname, const unsigned char *sha1,
extern void *cgit_free_commitinfo(struct commitinfo *info);
+void cgit_diff_tree_cb(struct diff_queue_struct *q,
+ struct diff_options *options, void *data);
+
extern int cgit_diff_files(const unsigned char *old_sha1,
const unsigned char *new_sha1,
unsigned long *old_size, unsigned long *new_size,