aboutsummaryrefslogtreecommitdiff
path: root/ui-commit.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui-commit.c b/ui-commit.c
index c2fafd7..8019e36 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -9,7 +9,6 @@
#include "cgit.h"
#include "html.h"
#include "ui-shared.h"
-#include "ui-diff.h"
static int files, slots;
static int total_adds, total_rems, max_changes;
@@ -219,11 +218,10 @@ void cgit_print_commit(char *hex)
print_fileinfo(&items[i]);
html("</table>");
html("<div class='diffstat-summary'>");
- htmlf("%d files changed, %d insertions, %d deletions",
+ htmlf("%d files changed, %d insertions, %d deletions (",
files, total_adds, total_rems);
- cgit_print_diff(ctx.qry.sha1,
- sha1_to_hex(commit->parents->item->object.sha1),
- NULL);
+ cgit_diff_link("show diff", NULL, NULL, ctx.qry.head, hex,
+ NULL, NULL);
html(")</div>");
}
cgit_free_commitinfo(info);