grep: reject --no-or
commitaae8558b1038de452acee672dffca30339f65fa9
authorRené Scharfe <l.s.r@web.de>
Thu, 7 Sep 2023 20:20:59 +0000 (7 22:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Sep 2023 20:35:07 +0000 (7 13:35 -0700)
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c