mirror of
https://git.zx2c4.com/cgit
synced 2025-08-02 00:54:36 +02:00
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>
This commit is contained in:
parent
747b035dda
commit
9003cc172a
4 changed files with 12 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue