From 6494c4defa9e6dc24e13af9d17d25aea793359fc Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 27 Sep 2026 22:04:58 +0300 Subject: ui-diff: (THEME) Rework layout of file diff --- ui-diff.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/ui-diff.c b/ui-diff.c index 6cfa697..f071c60 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -195,25 +195,18 @@ static void cgit_print_diffstat(const struct object_id *old_oid, { int i; - html("
"); - cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.oid, - ctx.qry.oid2, NULL); - if (prefix) { - html(" (limited to '"); - html_txt(prefix); - html("')"); - } - html("
"); - html(""); + html("
"); + html("
"); max_changes = 0; cgit_diff_tree(old_oid, new_oid, inspect_filepair, prefix, ctx.qry.ignorews); + htmlf("%d files changed, %d insertions, %d deletions", + files, total_adds, total_rems); + html("
"); + html("
"); for (i = 0; i"); - html("
"); - htmlf("%d files changed, %d insertions, %d deletions", - files, total_adds, total_rems); html("
"); } -- cgit v1.3.1-23-gd82d