Re: [PATCH 11/29] grep: add a test helper function for less verbose -f \0 tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 15, 2017, 01:29 UTC
- Message-ID
- <xmqqshk6ykkj.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACBZZX4MK8=YixozpbPjJh1JxHcFr9x6GoXJeA34E-qLn6ZSDw@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 6 quoted lines
>> It somehow was unintuitive that 0 expected failure and 1 expected >> success, but it probably was just me. > > Except this. The wildmatch uses the same idiom, and I think it makes > sense. 1 = true, 0 = false, ... when all we wanted was > "does this match".
OK. Makes perfect sense (it would have been even easier to understand if the variable was not $status but $matches or something).