From fe1230dece81450004d02fa8a470f8dab8f7fdd9 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 24 Apr 2008 23:32:02 +0200 Subject: 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 --- ui-diff.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui-diff.h') diff --git a/ui-diff.h b/ui-diff.h index 2307322..70b2926 100644 --- a/ui-diff.h +++ b/ui-diff.h @@ -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); -- cgit v1.2.1