{"thread":{"id":"5834","subject":"[PATCH] gitweb: Separate (new) and (deleted) in commitdiff by a space","startedAt":"2006-10-06T16:00:17Z","lastAt":"2006-10-06T16:00:17Z","messageCount":1,"participants":["Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"28294","messageId":"20061006160017.855.96502.stgit@rover","threadId":"5834","inReplyTo":null,"subject":"[PATCH] gitweb: Separate (new) and (deleted) in commitdiff by a space","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-10-06T16:00:17Z","receivedAt":"2006-10-06T16:00:17Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Currently it's pasted to the sha1 of the blob and looks ugly.\n\nSigned-off-by: Petr Baudis <pasky@suse.cz>\n---\n\n gitweb/gitweb.perl |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex bcb41cc..ea159e9 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -1987,14 +1987,14 @@ sub git_patchset_body {\n \t\t\t\tprint \"<div class=\\\"diff_info\\\">\" . file_type($diffinfo->{'to_mode'}) . \":\" .\n \t\t\t\t      $cgi->a({-href => href(action=>\"blob\", hash_base=>$hash,\n \t\t\t\t                             hash=>$diffinfo->{'to_id'}, file_name=>$diffinfo->{'file'})},\n-\t\t\t\t              $diffinfo->{'to_id'}) . \"(new)\" .\n+\t\t\t\t              $diffinfo->{'to_id'}) . \" (new)\" .\n \t\t\t\t      \"</div>\\n\"; # class=\"diff_info\"\n \n \t\t\t} elsif ($diffinfo->{'status'} eq \"D\") { # deleted\n \t\t\t\tprint \"<div class=\\\"diff_info\\\">\" . file_type($diffinfo->{'from_mode'}) . \":\" .\n \t\t\t\t      $cgi->a({-href => href(action=>\"blob\", hash_base=>$hash_parent,\n \t\t\t\t                             hash=>$diffinfo->{'from_id'}, file_name=>$diffinfo->{'file'})},\n-\t\t\t\t              $diffinfo->{'from_id'}) . \"(deleted)\" .\n+\t\t\t\t              $diffinfo->{'from_id'}) . \" (deleted)\" .\n \t\t\t\t      \"</div>\\n\"; # class=\"diff_info\"\n \n \t\t\t} elsif ($diffinfo->{'status'} eq \"R\" || # renamed\n"}]}