X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/2cc8b99f083014c58d8937bfa4dcd2bc47cd7e58..e0c6f23789e4893781bcd5af2281d468991ccf3a:/ui-diff.c?ds=sidebyside diff --git a/ui-diff.c b/ui-diff.c index 1656b77..7ff7e46 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -92,7 +92,7 @@ static void print_fileinfo(struct fileinfo *info) info->old_path); html(""); if (info->binary) { - htmlf("bin%d -> %d bytes", + htmlf("bin%ld -> %ld bytes", info->old_size, info->new_size); return; } @@ -171,6 +171,11 @@ void cgit_print_diffstat(const unsigned char *old_sha1, cgit_self_link("less", NULL, NULL, &ctx); ctx.qry.context = save_context; html(" context)"); + html(" ("); + ctx.qry.ignorews = (ctx.qry.ignorews + 1) % 2; + cgit_self_link(ctx.qry.ignorews ? "ignore" : "show", NULL, NULL, &ctx); + ctx.qry.ignorews = (ctx.qry.ignorews + 1) % 2; + html(" whitespace changes)"); html(""); html(""); max_changes = 0;