- if ($1 ne $2) {
- git_diff_html($file, $file, $1, $2);
+ my $from_id = $1;
+ my $to_id = $2;
+ $mode =~ m/([0-7]+)->([0-7]+)/;
+ my $from_mode = $1;
+ my $to_mode = $2;
+ if ($from_id ne $to_id) {
+ print "<span class=\"diff_info\">" .
+ file_type($from_mode) . ":" . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$from_id"}, $from_id) .
+ " -> " .
+ file_type($to_mode) . ":" . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id"}, $to_id);
+ print "</span>\n";
+ git_diff_html($from_id, "a/$file", $to_id, "b/$file");