From c495cf02bac16e459f7c9e1740798646f12c00c5 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 31 Jan 2009 10:40:40 +0100 Subject: Handle binary files in diffs This teaches all diff-related operations (i.e. ui-log, ui-diff and ui-patch) how to handle binary files. Signed-off-by: Lars Hjemli --- cgit.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 4fe94c6..8b0defa 100644 --- a/cgit.h +++ b/cgit.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -221,7 +222,8 @@ extern void *cgit_free_commitinfo(struct commitinfo *info); extern int cgit_diff_files(const unsigned char *old_sha1, const unsigned char *new_sha1, - linediff_fn fn); + unsigned long *old_size, unsigned long *new_size, + int *binary, linediff_fn fn); extern void cgit_diff_tree(const unsigned char *old_sha1, const unsigned char *new_sha1, -- cgit v1.2.3-59-g8ed1b