aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.h
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2008-04-25 06:32:02 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2008-04-25 06:41:32 (JST)
commitfe1230dece81450004d02fa8a470f8dab8f7fdd9 (patch)
treed9c26264b9339d05dbcaa84a59fcabb081e84e98 /ui-diff.h
parent9ec5cd7944a7099515b7d41107007d6332a2540e (diff)
downloadcgit-fe1230dece81450004d02fa8a470f8dab8f7fdd9.zip
cgit-fe1230dece81450004d02fa8a470f8dab8f7fdd9.tar.gz
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>
Diffstat (limited to 'ui-diff.h')
-rw-r--r--ui-diff.h3
1 files changed, 3 insertions, 0 deletions
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 @@
1#ifndef UI_DIFF_H 1#ifndef UI_DIFF_H
2#define UI_DIFF_H 2#define UI_DIFF_H
3 3
4extern void cgit_print_diffstat(const unsigned char *old_sha1,
5 const unsigned char *new_sha1);
6
4extern void cgit_print_diff(const char *new_hex, const char *old_hex, 7extern void cgit_print_diff(const char *new_hex, const char *old_hex,
5 const char *prefix); 8 const char *prefix);
6 9