Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/ui-diff.c b/ui-diff.c index 12e78b1..1c182aa 100644 --- a/ ui-diff.c+++ b/ ui-diff.c |
|
@@ -142,12 +142,13 @@ void cgit_print_diffstat(const unsigned char *old_sha1, |
142 | { |
142 | { |
143 | int i; |
143 | int i; |
144 | |
144 | |
145 | html("<div class='diffstat-header'>Diffstat</div>"); |
145 | html("<div class='diffstat-header'>Diffstat</div>"); |
146 | html("<table summary='diffstat' class='diffstat'>"); |
146 | html("<table summary='diffstat' class='diffstat'>"); |
147 | max_changes = 0; |
147 | max_changes = 0; |
| |
148 | curr_rev = xstrdup(sha1_to_hex(new_sha1)); |
148 | cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); |
149 | cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); |
149 | for(i = 0; i<files; i++) |
150 | for(i = 0; i<files; i++) |
150 | print_fileinfo(&items[i]); |
151 | print_fileinfo(&items[i]); |
151 | html("</table>"); |
152 | html("</table>"); |
152 | html("<div class='diffstat-summary'>"); |
153 | html("<div class='diffstat-summary'>"); |
153 | htmlf("%d files changed, %d insertions, %d deletions", |
154 | htmlf("%d files changed, %d insertions, %d deletions", |
|