Re: [PATCHv2 2/7] revision.h: introduce blob/tree walking in order of the commits
- From
Stefan Beller <sbeller@google.com>
- Date
- Nov 1, 2017, 19:37 UTC
- Message-ID
- <CAGZ79kY-yooE4cZK0Sxh3AL32wi66PRh1LzB8e3djq=bnLDHFg@mail.gmail.com>
- In-Reply-To
- <CAPc5daWpUMOCYyK=S8JiAV5DHF6BYDff8wH0N6QDeR=nvOXnLA@mail.gmail.com>
On Wed, Nov 1, 2017 at 5:37 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
> On Wed, Nov 1, 2017 at 9:26 PM, Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: >> >> ... >> ( >> for x in four three >> do >> git rm $x && >> git commit -m "remote $x" || >> exit >> done >> ) && >> test 0 -eq $? && >> ... >> >> Ugly? Yes. Correct? Also yes. > > I think returning non-zero with "return" is how other tests avoid an > extra level of subshell. > Ugly? Yes. Correct? Questionable but it seems to work for those who > wrote them ;-)
I think I'll go without the extra subshell and with s/return 1/false/ as the exact value doesn't matter.
Thanks for hinting at correct implementations