mirror of
https://github.com/git/git
synced 2024-10-06 00:29:28 +00:00
Merge branch 'rs/grep-no-no-or' into maint-2.42
"git grep -e A --no-or -e B" is accepted, even though the negation of "or" did not mean anything, which has been tightened. * rs/grep-no-no-or: grep: reject --no-or
This commit is contained in:
commit
17ab51ee8f
|
@ -990,7 +990,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
|
|||
OPT_CALLBACK_F(0, "and", &opt, NULL,
|
||||
N_("combine patterns specified with -e"),
|
||||
PARSE_OPT_NOARG | PARSE_OPT_NONEG, and_callback),
|
||||
OPT_BOOL(0, "or", &dummy, ""),
|
||||
OPT_BOOL_F(0, "or", &dummy, "", PARSE_OPT_NONEG),
|
||||
OPT_CALLBACK_F(0, "not", &opt, NULL, "",
|
||||
PARSE_OPT_NOARG | PARSE_OPT_NONEG, not_callback),
|
||||
OPT_CALLBACK_F('(', NULL, &opt, NULL, "",
|
||||
|
|
Loading…
Reference in a new issue