From 8907f2a03195abec409540ab11293fe748468413 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 18 May 2008 21:21:32 +0200 Subject: Include commit-id in link from diff-stat This fixes a regression created by fe1230dece81450004d02fa8a470f8dab8f7fdd9, and modifies a test to avoid future regressions. Signed-off-by: Lars Hjemli --- ui-diff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui-diff.c') diff --git a/ui-diff.c b/ui-diff.c index 12e78b1..1c182aa 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -145,6 +145,7 @@ void cgit_print_diffstat(const unsigned char *old_sha1, html("
Diffstat
"); html(""); max_changes = 0; + curr_rev = xstrdup(sha1_to_hex(new_sha1)); cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); for(i = 0; i