aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.h
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-diff.h
parent747b035dda97ae359ed00d84744acfa8cc009fb2 (diff)
downloadcgit-9003cc172a4cbc6678f3d8003ae1ad3a55f62fed.tar.gz
cgit-9003cc172a4cbc6678f3d8003ae1ad3a55f62fed.tar.bz2
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-diff.h')
-rw-r--r--ui-diff.h2
1 files changed, 1 insertions, 1 deletions
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 @@
4extern void cgit_print_diff_ctrls(); 4extern void cgit_print_diff_ctrls();
5 5
6extern void cgit_print_diff(const char *new_hex, const char *old_hex, 6extern void cgit_print_diff(const char *new_hex, const char *old_hex,
7 const char *prefix, int show_ctrls); 7 const char *prefix, int show_ctrls, int raw);
8 8
9extern struct diff_filespec *cgit_get_current_old_file(void); 9extern struct diff_filespec *cgit_get_current_old_file(void);
10extern struct diff_filespec *cgit_get_current_new_file(void); 10extern struct diff_filespec *cgit_get_current_new_file(void);