From: Nicholas Clark Date: Tue, 13 Jan 2009 17:51:20 +0000 (+0000) Subject: chomp the output from git ls-files. Display a helpful message nothing is X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fdd40f9619a93646220d5fc6d6fe637d58906adb;p=p5sagit%2Fp5-mst-13.2.git chomp the output from git ls-files. Display a helpful message nothing is modified, rather than failing back to the usage message. --- diff --git a/Porting/Maintainers.pm b/Porting/Maintainers.pm index 40266f5..d3d1dbd 100644 --- a/Porting/Maintainers.pm +++ b/Porting/Maintainers.pm @@ -108,7 +108,7 @@ sub process_options { my @Files; if ($Opened) { - @Files = `git ls-files -m --full-name`; + chomp (@Files = `git ls-files -m --full-name`); die if $?; } else { @Files = @ARGV; @@ -246,6 +246,9 @@ sub show_results { } } } + elsif ($Opened) { + print "(No files are modified)\n"; + } else { usage(); }