mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 10:28:42 +00:00
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:
parent
2d386e227e
commit
044e2d26da
3
cgit.h
3
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);
|
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,
|
extern int cgit_diff_files(const unsigned char *old_sha1,
|
||||||
const unsigned char *new_sha1,
|
const unsigned char *new_sha1,
|
||||||
unsigned long *old_size, unsigned long *new_size,
|
unsigned long *old_size, unsigned long *new_size,
|
||||||
|
2
shared.c
2
shared.c
@ -250,7 +250,7 @@ int cgit_refs_cb(const char *refname, const struct object_id *oid, int flags,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cgit_diff_tree_cb(struct diff_queue_struct *q,
|
void cgit_diff_tree_cb(struct diff_queue_struct *q,
|
||||||
struct diff_options *options, void *data)
|
struct diff_options *options, void *data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user