diff options
author | Jeff King <peff@peff.net> | 2015-03-25 01:30:17 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-25 12:49:33 -0700 |
commit | c6587bddc4e8a3ee2eef98a0a5cf15542a9cc849 (patch) | |
tree | da1d8467e0c8a0a20e838b7e067ba1be7d896640 /Documentation/fix-texi.perl | |
parent | t: fix some trivial cases of ignored exit codes in loops (diff) | |
download | tgif-c6587bddc4e8a3ee2eef98a0a5cf15542a9cc849.tar.xz |
t: simplify loop exit-code status variables
Since shell loops may drop the exit code of failed commands
inside the loop, some tests try to keep track of the status
by setting a variable. This can end up cumbersome and hard
to read; it is much simpler to just exit directly from the
loop using "return 1" (since each case is either in a helper
function or inside a test snippet).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fix-texi.perl')
0 files changed, 0 insertions, 0 deletions