From: Jakub Narebski Date: Sun, 30 Jul 2006 12:58:11 +0000 (+0200) Subject: gitweb: Cleanup - chomp @lines in consistent style X-Git-Tag: v1.4.3-rc1~274^2~47 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0881d2d1303a067a02e3811d43a1aed04a47945e?hp=0881d2d1303a067a02e3811d43a1aed04a47945e 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 Signed-off-by: Junio C Hamano ---