X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e903011c4457c24c0095f270ca5e78c40729434f..30ccdcaa74ebc0aab2b7843b0db8251d0ddf56de:/ui-commit.c?ds=sidebyside
diff --git a/ui-commit.c b/ui-commit.c
index 8011dfc..ff1fad3 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -197,7 +197,7 @@ void cgit_print_commit(const char *hex)
html("
| parent | "
""
"%s (Diffstat");
html("");
max_changes = 0;
cgit_diff_commit(commit, inspect_filepair);
@@ -228,8 +229,11 @@ void cgit_print_commit(const char *hex)
print_fileinfo(&items[i]);
html(" ");
html("");
- htmlf("%d files changed, %d insertions, %d deletions\n",
+ htmlf("%d files changed, %d insertions, %d deletions (",
files, total_adds, total_rems);
+ query = fmt("h=%s", hex);
+ html_link_open(cgit_pageurl(cgit_query_repo, "diff", query), NULL, NULL);
+ html("show diff)");
html(" ");
}
cgit_free_commitinfo(info);
|
|---|