X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/4a198e4b8ee62a9a8b5156a46bfce46dc7223fe9..6654d5b7bdc1d775cf09ca6690b1fc5ecea4696d:/ui-diff.c?ds=sidebyside diff --git a/ui-diff.c b/ui-diff.c index a92a768..e0a72f7 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -127,7 +127,7 @@ static void inspect_filepair(struct diff_filepair *pair) lines_added = 0; lines_removed = 0; cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, &new_size, - &binary, count_diff_lines); + &binary, 0, count_diff_lines); if (files >= slots) { if (slots == 0) slots = 4; @@ -154,17 +154,27 @@ static void inspect_filepair(struct diff_filepair *pair) } void cgit_print_diffstat(const unsigned char *old_sha1, - const unsigned char *new_sha1) + const unsigned char *new_sha1, const char *prefix) { - int i; + int i, save_context = ctx.qry.context; html("