]> git.99rst.org Git - git.git/commit
grep: reject --no-or
authorRené Scharfe <redacted>
Thu, 7 Sep 2023 20:20:59 +0000 (22:20 +0200)
committerJunio C Hamano <redacted>
Thu, 7 Sep 2023 20:35:07 +0000 (13:35 -0700)
commitaae8558b1038de452acee672dffca30339f65fa9
tree9c9565a9c70ffbe40cfb924b1429299c41319272
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38
grep: reject --no-or

Since 3e230fa1b2 (grep: use parseopt, 2009-05-07) git grep has been
accepting the option --no-or.  It does the same as --or: nothing.
That's confusing and unintended.  Forbid negating --or.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/grep.c
git clone https://git.99rst.org/PROJECT