mirror of
https://git.zx2c4.com/cgit
synced 2025-06-26 19:58:42 +02:00
Integrate diffstat with diff
This creates a generic diffstat function in ui-diff, which then is invoked from cgit_print_diff with the result that both commit and diff- view gets a diffstat. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
9ec5cd7944
commit
fe1230dece
3 changed files with 152 additions and 142 deletions
|
@ -1,6 +1,9 @@
|
|||
#ifndef UI_DIFF_H
|
||||
#define UI_DIFF_H
|
||||
|
||||
extern void cgit_print_diffstat(const unsigned char *old_sha1,
|
||||
const unsigned char *new_sha1);
|
||||
|
||||
extern void cgit_print_diff(const char *new_hex, const char *old_hex,
|
||||
const char *prefix);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue