From 9003cc172a4cbc6678f3d8003ae1ad3a55f62fed Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 14 Aug 2013 10:50:32 +0200 Subject: Allow for creating raw diffs with cgit_print_diff() This adds a parameter to cgit_print_diff() to create raw diffs, using the same format as `git diff `. Signed-off-by: Lukas Fleischer --- ui-diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-diff.h') diff --git a/ui-diff.h b/ui-diff.h index 25a9296..04f9029 100644 --- a/ui-diff.h +++ b/ui-diff.h @@ -4,7 +4,7 @@ extern void cgit_print_diff_ctrls(); extern void cgit_print_diff(const char *new_hex, const char *old_hex, - const char *prefix, int show_ctrls); + const char *prefix, int show_ctrls, int raw); extern struct diff_filespec *cgit_get_current_old_file(void); extern struct diff_filespec *cgit_get_current_new_file(void); -- cgit v1.2.3-70-g09d2