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)
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>
No differences found