Thread (1 message) 1 message, 1 author, 2017-05-15

Re: [PATCH 11/29] grep: add a test helper function for less verbose -f \0 tests

From: Junio C Hamano <hidden>
Date: 2017-05-15 01:29:07

Ævar Arnfjörð Bjarmason [off-list ref] writes:
quoted
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).

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help