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>
This commit is contained in:
John Keeping
2015-08-12 15:34:48 +01:00
committed by Jason A. Donenfeld
父節點 2d386e227e
當前提交 044e2d26da
共有 2 個文件被更改,包括 5 次插入2 次删除

查看文件

@ -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;