Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-08-12 17:34:48 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2015-08-12 17:57:30 +0300
commit044e2d26da4f8b4f9ff25e4a729ab4e393073b5e (patch)
treeb98bb6979764625c4f919e90e3374f91b698dea4 /cgit.h
parent2d386e227e0b75474efcfe82e9fec7d0f21c6df4 (diff)
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 db9a8eb..b2253d2 100644
--- a/cgit.h
+++ b/cgit.h
@@ -340,6 +340,9 @@ extern int cgit_refs_cb(const char *refname, const struct object_id *oid,
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,