|
diff --git a/ui-log.c b/ui-log.c index 5eb5c81..354ee08 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -24,25 +24,26 @@ void count_lines(char *line, int size) |
24 | rem_lines++; |
24 | rem_lines++; |
25 | } |
25 | } |
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; |
29 | unsigned long old_size = 0; |
30 | unsigned long new_size = 0; |
30 | unsigned long new_size = 0; |
31 | int binary = 0; |
31 | int binary = 0; |
32 | |
32 | |
33 | files++; |
33 | files++; |
34 | if (ctx.repo->enable_log_linecount) |
34 | if (ctx.repo->enable_log_linecount) |
35 | cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, |
35 | cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, |
36 | &new_size, &binary, 0, count_lines); |
36 | &new_size, &binary, 0, ctx.qry.ignorews, |
| |
37 | count_lines); |
37 | } |
38 | } |
38 | |
39 | |
39 | void show_commit_decorations(struct commit *commit) |
40 | void show_commit_decorations(struct commit *commit) |
40 | { |
41 | { |
41 | struct name_decoration *deco; |
42 | struct name_decoration *deco; |
42 | static char buf[1024]; |
43 | static char buf[1024]; |
43 | |
44 | |
44 | buf[sizeof(buf) - 1] = 0; |
45 | buf[sizeof(buf) - 1] = 0; |
45 | deco = lookup_decoration(&name_decoration, &commit->object); |
46 | deco = lookup_decoration(&name_decoration, &commit->object); |
46 | while (deco) { |
47 | while (deco) { |
47 | if (!prefixcmp(deco->name, "refs/heads/")) { |
48 | if (!prefixcmp(deco->name, "refs/heads/")) { |
48 | strncpy(buf, deco->name + 11, sizeof(buf) - 1); |
49 | strncpy(buf, deco->name + 11, sizeof(buf) - 1); |
|