1
0
Fork 0

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>
Dieser Commit ist enthalten in:
John Keeping 2015-08-12 15:34:48 +01:00 committet von Jason A. Donenfeld
Ursprung 2d386e227e
Commit 044e2d26da
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

3
cgit.h
Datei anzeigen

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

Datei anzeigen

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