From 044e2d26da4f8b4f9ff25e4a729ab4e393073b5e Mon Sep 17 00:00:00 2001 From: John Keeping Date: Wed, 12 Aug 2015 15:34:48 +0100 Subject: 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 --- shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared.c') diff --git a/shared.c b/shared.c index a83afcb..0431b59 100644 --- a/shared.c +++ b/shared.c @@ -250,8 +250,8 @@ int cgit_refs_cb(const char *refname, const struct object_id *oid, int flags, return 0; } -static void cgit_diff_tree_cb(struct diff_queue_struct *q, - struct diff_options *options, void *data) +void cgit_diff_tree_cb(struct diff_queue_struct *q, + struct diff_options *options, void *data) { int i; -- cgit v1.2.3-70-g09d2