Code

gitweb: Cleanup - chomp @lines in consistent style
authorJakub Narebski <jnareb@gmail.com>
Sun, 30 Jul 2006 12:58:11 +0000 (14:58 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 01:37:29 +0000 (18:37 -0700)
commit0881d2d1303a067a02e3811d43a1aed04a47945e
treeeb2b3152b29ab63f2b32dcbd0d576853edca2756
parentcefda27f741a948a78ce27180f5332c2d19199c4
gitweb: Cleanup - chomp @lines in consistent style

Use 'my @lines = map { chomp; $_ } <$fd>;' form to read all lines of
git command output into array without trailing newlines.

It has advantage over 'chomp (my (@lines) = <$fd>);' in that it does
not modify array.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi