about summary refs log tree commit diff stats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorLukas Fleischer2013-08-14 10:50:32 +0200
committerJason A. Donenfeld2013-08-16 13:15:37 -0600
commit9003cc172a4cbc6678f3d8003ae1ad3a55f62fed (patch)
tree7ca3eae3de1a9851eeb2af473b88bdc6dab0550b /ui-commit.c
parentExtract filepair_cb from ui-patch.c (diff)
downloadcgit-9003cc172a4cbc6678f3d8003ae1ad3a55f62fed.tar.gz
cgit-9003cc172a4cbc6678f3d8003ae1ad3a55f62fed.zip
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 <commit>`.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c2
1 files changed, 1 insertions, 1 deletions
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)
137 tmp = sha1_to_hex(commit->parents->item->object.sha1); 137 tmp = sha1_to_hex(commit->parents->item->object.sha1);
138 else 138 else
139 tmp = NULL; 139 tmp = NULL;
140 cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0); 140 cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0, 0);
141 } 141 }
142 strbuf_release(&notes); 142 strbuf_release(&notes);
143 cgit_free_commitinfo(info); 143 cgit_free_commitinfo(info);