Re: [PATCH 1/7] Add -q/--quiet switch to git-ls-files
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Nov 23, 2007, 19:25 UTC
- Message-ID
- <CA22AE42-64AD-4633-8671-1901956E7C92@wincent.com>
- In-Reply-To
- <1195845650-85962-2-git-send-email-win@wincent.com>
El 23/11/2007, a las 20:20, Wincent Colaiuta escribió:
Show 16 quoted lines
> +test_expect_success \ > + 'git ls-files -q --error-unmatch should be quiet with unmatched > path.' \ > + 'git ls-files -q --error-unmatch foo bar-does-not-match 1> out > 2> err || > + test $(cat out | wc -l) -eq 0 && > + test $(cat err | wc -l) -gt 0' > + > +test_expect_success \ > + 'git ls-files -q --error-unmatch should be quiet with matched > paths.' \ > + 'git ls-files -q --error-unmatch foo bar 1> out 2> err || > + test $(cat out | wc -l) -eq 0 && > + test $(cat err | wc -l) -eq 0' > + > test_done
Doh, in that last test it should be:
+ 'git ls-files -q --error-unmatch foo bar 1> out 2> err &&
Instead of:
+ 'git ls-files -q --error-unmatch foo bar 1> out 2> err ||
Cheers, Wincent