diff options
author | Lars Hjemli | 2009-02-01 19:29:47 +0100 |
---|---|---|
committer | Lars Hjemli | 2009-02-01 19:29:47 +0100 |
commit | 5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6 (patch) | |
tree | 823678b1c4a907cf0df50067c27fb5b752114df5 /ui-log.c | |
parent | 0b3c746ba80738dbe0885a21406409390936537c (diff) | |
parent | 481ce5e298e2dcd7edc1d4a30e523dda2ce58b01 (diff) | |
download | cgit-5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6.tar.gz cgit-5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6.tar.bz2 cgit-5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6.zip |
Merge branch 'lh/binary'
Diffstat (limited to 'ui-log.c')
-rw-r--r-- | ui-log.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -26,9 +26,14 @@ void count_lines(char *line, int size) | |||
26 | 26 | ||
27 | void inspect_files(struct diff_filepair *pair) | 27 | void inspect_files(struct diff_filepair *pair) |
28 | { | 28 | { |
29 | unsigned long old_size = 0; | ||
30 | unsigned long new_size = 0; | ||
31 | int binary = 0; | ||
32 | |||
29 | files++; | 33 | files++; |
30 | if (ctx.repo->enable_log_linecount) | 34 | if (ctx.repo->enable_log_linecount) |
31 | cgit_diff_files(pair->one->sha1, pair->two->sha1, count_lines); | 35 | cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, |
36 | &new_size, &binary, count_lines); | ||
32 | } | 37 | } |
33 | 38 | ||
34 | void show_commit_decorations(struct commit *commit) | 39 | void show_commit_decorations(struct commit *commit) |