Thread (1 message) 1 message, 1 author, 2023-01-14

Re: BUG: git grep behave oddly with alternatives

From: Junio C Hamano <hidden>
Date: 2023-01-14 16:09:04

Diomidis Spinellis [off-list ref] writes:
Indeed, I removed the alternation handling functionality by accident.
I was not aware of the BRE-handling difference between the GNU and the
macOS native regex library.  I think having git-grep behave the same
as grep(1) on each platform is consistent with the principle of least
astonishment (POLA).  This would mean that on macOS plain git-grep
should use enhanced basic REs as proposed in René's patch.
Thanks.  I am fine with what René's patch does, which we already
queued, then ;-)

Let's merge 54463d32 (use enhanced basic regular expressions on
macOS, 2023-01-08) down to 'next'.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help