]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-log.c
Add support for repo.commit-filter and repo.source-filter
[cgit.git] / ui-log.c
index 32028484b7a531898aa4c3a00e51ebad4ec53da6..ba2ab0314186fbbed847907f113227d879767cea 100644 (file)
--- 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)