all repos — cgit @ 044e2d26da4f8b4f9ff25e4a729ab4e393073b5e

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Wed, 12 Aug 2015 15:34:48 +0100
commit

044e2d26da4f8b4f9ff25e4a729ab4e393073b5e

parent

2d386e227e0b75474efcfe82e9fec7d0f21c6df4

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M cgit.hcgit.h

@@ -340,6 +340,9 @@ int flags, void *cb_data);

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,
M shared.cshared.c

@@ -250,8 +250,8 @@ cgit_add_ref(list, info);

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;