@matheusbsbs / matheus-bagliano / commits / 689b7f5ccb
Fork 0

gitweb: Separate (new) and (deleted) in commitdiff by a space

Currently it's pasted to the sha1 of the blob and looks ugly. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Petr Baudis committed Oct 6, 2006 at 18:00 UTC 689b7f5ccbbb71f5a1a165cfb1e24abd42c7d009
1 file changed +2 -2
gitweb/gitweb.perl
+2 -2
@@ -1922,14 +1922,14 @@ sub git_patchset_body {
1922 print "<div class=\"diff_info\">" . file_type($diffinfo->{'to_mode'}) . ":" .
1923 $cgi->a({-href => href(action=>"blob", hash_base=>$hash,
1924 hash=>$diffinfo->{'to_id'}, file_name=>$diffinfo->{'file'})},
1925 - $diffinfo->{'to_id'}) . "(new)" .
1925 + $diffinfo->{'to_id'}) . " (new)" .
1926 "</div>\n"; # class="diff_info"
1927
1928 } elsif ($diffinfo->{'status'} eq "D") { # deleted
1929 print "<div class=\"diff_info\">" . file_type($diffinfo->{'from_mode'}) . ":" .
1930 $cgi->a({-href => href(action=>"blob", hash_base=>$hash_parent,
1931 hash=>$diffinfo->{'from_id'}, file_name=>$diffinfo->{'file'})},
1932 - $diffinfo->{'from_id'}) . "(deleted)" .
1932 + $diffinfo->{'from_id'}) . " (deleted)" .
1933 "</div>\n"; # class="diff_info"
1934
1935 } elsif ($diffinfo->{'status'} eq "R" || # renamed