all repos — cgit @ 8907f2a03195abec409540ab11293fe748468413

a hyperfast web frontend for git written in c

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 <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 21:21:32 +0200
commit

8907f2a03195abec409540ab11293fe748468413

parent

502d57596e645ec91bb9b8ca62833cdb0de4a3b1

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M tests/t0105-commit.shtests/t0105-commit.sh

@@ -26,7 +26,7 @@ grep "</html>" trash/tmp

' run_test 'root commit contains diffstat' ' - grep "<a href=./foo/diff/file-1.>file-1</a>" trash/tmp + grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp ' run_test 'root commit contains diff' '
M ui-diff.cui-diff.c

@@ -145,6 +145,7 @@

html("<div class='diffstat-header'>Diffstat</div>"); html("<table summary='diffstat' class='diffstat'>"); 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<files; i++) print_fileinfo(&items[i]);