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-commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index a5a6ea8..ef85a49 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -137,7 +137,7 @@ void cgit_print_commit(char *hex, const char *prefix) tmp = sha1_to_hex(commit->parents->item->object.sha1); else tmp = NULL; - cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0); + cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0, 0); } strbuf_release(¬es); cgit_free_commitinfo(info); -- cgit v1.2.3-70-g09d2