Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: (style) use chomp without parentheses consistently.
author
Junio C Hamano
<junkio@cox.net>
Fri, 24 Nov 2006 22:04:01 +0000
(14:04 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 24 Nov 2006 22:07:41 +0000
(14:07 -0800)
It seems that gitweb tries to consistently use chomp without parentheses
around its operands, but there were two places that said "chomp($var);".
Let's be consistent.
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
793c400
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 75e3502fe8b67b015680a87723f8cae8d9d957e8..6ae7e80351d597d21f474e72083c83b93ea45bbf 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-2918,7
+2918,7
@@
sub git_tag {
print "<div class=\"page_body\">";
my $comment = $tag{'comment'};
foreach my $line (@$comment) {
- chomp
($line)
;
+ chomp
$line
;
print esc_html($line, -nbsp=>1) . "<br/>\n";
}
print "</div>\n";
@@
-2988,7
+2988,7
@@
sub git_blame2 {
}
}
my $data = $_;
- chomp
($data)
;
+ chomp
$data
;
my $rev = substr($full_rev, 0, 8);
my $author = $meta->{'author'};
my %date = parse_date($meta->{'author-time'},