| -rw-r--r-- | cgit.h | 3 | ||||
| -rw-r--r-- | shared.c | 4 | ||||
| -rw-r--r-- | ui-log.c | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -294,8 +294,7 @@ extern void cgit_diff_tree(const unsigned char *old_sha1, const unsigned char *new_sha1, filepair_fn fn, const char *prefix, int ignorews); -extern void cgit_diff_commit(struct commit *commit, filepair_fn fn, - const char *prefix); +extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); __attribute__((format (printf,1,2))) extern char *fmt(const char *format,...); @@ -338,13 +338,13 @@ void cgit_diff_tree(const unsigned char *old_sha1, diff_flush(&opt); } -void cgit_diff_commit(struct commit *commit, filepair_fn fn, const char *prefix) +void cgit_diff_commit(struct commit *commit, filepair_fn fn) { unsigned char *old_sha1 = NULL; if (commit->parents) old_sha1 = commit->parents->item->object.sha1; - cgit_diff_tree(old_sha1, commit->object.sha1, fn, prefix, + cgit_diff_tree(old_sha1, commit->object.sha1, fn, NULL, ctx.qry.ignorews); } @@ -101,7 +101,7 @@ void print_commit(struct commit *commit) files = 0; add_lines = 0; rem_lines = 0; - cgit_diff_commit(commit, inspect_files, ctx.qry.vpath); + cgit_diff_commit(commit, inspect_files); html("</td><td>"); htmlf("%d", files); if (ctx.repo->enable_log_linecount) { |