]> Lady’s Gitweb - Gitweb/commit
gitweb: Cleanup - chomp @lines in consistent style
authorJakub Narebski <redacted>
Sun, 30 Jul 2006 12:58:11 +0000 (14:58 +0200)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:38 +0000 (14:43 -0400)
commited9e9905b14df025c55e7ca097da22da1fdc95baf4226cd66b400644384e0cea
tree1d700a989d6962ef09463026df51b2f7bd3707a009fa897e08f14fbd00117995
parentf68f8c617dd9c4f104928d3d4aeaa8a7e96f8d16feafcc87e0196e1027f101a1
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi
This page took 0.230097 seconds and 4 git commands to generate.