author | Lars Hjemli <hjemli@gmail.com> | 2008-04-24 21:32:02 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-04-24 21:41:32 (UTC) |
commit | fe1230dece81450004d02fa8a470f8dab8f7fdd9 (patch) (side-by-side diff) | |
tree | d9c26264b9339d05dbcaa84a59fcabb081e84e98 /ui-diff.h | |
parent | 9ec5cd7944a7099515b7d41107007d6332a2540e (diff) | |
download | cgit-fe1230dece81450004d02fa8a470f8dab8f7fdd9.zip cgit-fe1230dece81450004d02fa8a470f8dab8f7fdd9.tar.gz cgit-fe1230dece81450004d02fa8a470f8dab8f7fdd9.tar.bz2 |
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>
-rw-r--r-- | ui-diff.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,7 +1,10 @@ #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); #endif /* UI_DIFF_H */ |