X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ef688e16f05a5a3438e63645852c436fe33fab71..97b3d252629a8a3b9d356c2532dec7611438e4b9:/ui-log.c diff --git a/ui-log.c b/ui-log.c index c3757dd..ba2ab03 100644 --- a/ui-log.c +++ b/ui-log.c @@ -26,9 +26,14 @@ void count_lines(char *line, int size) void inspect_files(struct diff_filepair *pair) { + unsigned long old_size = 0; + unsigned long new_size = 0; + int binary = 0; + files++; if (ctx.repo->enable_log_linecount) - cgit_diff_files(pair->one->sha1, pair->two->sha1, count_lines); + cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, + &new_size, &binary, count_lines); } void show_commit_decorations(struct commit *commit) @@ -165,7 +170,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern "