mirror of
https://github.com/git/git.git
synced 2024-12-02 22:43:44 +08:00
0c51d6b4ae
Failures within `for` and `while` loops can go unnoticed if not detected and signaled manually since the loop itself does not abort when a contained command fails, nor will a failure necessarily be detected when the loop finishes since the loop returns the exit code of the last command it ran on the final iteration, which may not be the command which failed. Therefore, detect and signal failures manually within loops using the idiom `|| return 1` (or `|| exit 1` within subshells). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
bin-wrapper | ||
Git | ||
t | ||
.gitignore | ||
.perlcriticrc | ||
git-mw.perl | ||
git-remote-mediawiki.perl | ||
git-remote-mediawiki.txt | ||
Makefile |