diff options
author | Lars Hjemli | 2008-05-18 21:21:32 +0200 |
---|---|---|
committer | Lars Hjemli | 2008-05-18 21:33:30 +0200 |
commit | 8907f2a03195abec409540ab11293fe748468413 (patch) | |
tree | 98b8d269408f6ffcda3a2ebfa6c709565e0f1c2a /ui-diff.c | |
parent | 502d57596e645ec91bb9b8ca62833cdb0de4a3b1 (diff) | |
download | cgit-8907f2a03195abec409540ab11293fe748468413.tar.gz cgit-8907f2a03195abec409540ab11293fe748468413.tar.bz2 cgit-8907f2a03195abec409540ab11293fe748468413.zip |
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>
Diffstat (limited to 'ui-diff.c')
-rw-r--r-- | ui-diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -145,6 +145,7 @@ void cgit_print_diffstat(const unsigned char *old_sha1, | |||
145 | html("<div class='diffstat-header'>Diffstat</div>"); | 145 | html("<div class='diffstat-header'>Diffstat</div>"); |
146 | html("<table summary='diffstat' class='diffstat'>"); | 146 | html("<table summary='diffstat' class='diffstat'>"); |
147 | max_changes = 0; | 147 | max_changes = 0; |
148 | curr_rev = xstrdup(sha1_to_hex(new_sha1)); | ||
148 | cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); | 149 | cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); |
149 | for(i = 0; i<files; i++) | 150 | for(i = 0; i<files; i++) |
150 | print_fileinfo(&items[i]); | 151 | print_fileinfo(&items[i]); |