diff options
author | Petr Baudis <pasky@suse.cz> | 2006-10-06 18:00:17 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-07 02:16:22 -0700 |
commit | 689b7f5ccbbb71f5a1a165cfb1e24abd42c7d009 (patch) | |
tree | 86214fff806c5a332800c222f65e5b83e35eee81 /gitweb | |
parent | 55ff35cb649e77f7633f9a30e9988ecad1371fe5 (diff) | |
download | git-689b7f5ccbbb71f5a1a165cfb1e24abd42c7d009.tar.gz git-689b7f5ccbbb71f5a1a165cfb1e24abd42c7d009.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 276a84244..3d677a9db 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1922,14 +1922,14 @@ sub git_patchset_body { print "<div class=\"diff_info\">" . file_type($diffinfo->{'to_mode'}) . ":" . $cgi->a({-href => href(action=>"blob", hash_base=>$hash, hash=>$diffinfo->{'to_id'}, file_name=>$diffinfo->{'file'})}, - $diffinfo->{'to_id'}) . "(new)" . + $diffinfo->{'to_id'}) . " (new)" . "</div>\n"; # class="diff_info" } elsif ($diffinfo->{'status'} eq "D") { # deleted print "<div class=\"diff_info\">" . file_type($diffinfo->{'from_mode'}) . ":" . $cgi->a({-href => href(action=>"blob", hash_base=>$hash_parent, hash=>$diffinfo->{'from_id'}, file_name=>$diffinfo->{'file'})}, - $diffinfo->{'from_id'}) . "(deleted)" . + $diffinfo->{'from_id'}) . " (deleted)" . "</div>\n"; # class="diff_info" } elsif ($diffinfo->{'status'} eq "R" || # renamed |