From dff894d12953a8a3cd7cdca2357771212a2f57d6 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Wed, 16 May 2007 01:16:56 +0200 Subject: Add link to commitdiff below diffstat This link is a lot easier to locate than the links to the right of the parent entries. Signed-off-by: Lars Hjemli --- ui-commit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index 93eb8fd..ff1fad3 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -221,6 +221,7 @@ void cgit_print_commit(const char *hex) html_txt(info->msg); html(""); if (!(commit->parents && commit->parents->next && commit->parents->next->next)) { + html("
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); -- cgit