X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=73fc922c4995369c0ca86c01200e2a0ea39161ab;hb=59773c7e583b1dcf4b63c4ee222b79cef460456b;hp=5308b346e69a50d7695b26f3b8e00bfdf71e1dd2;hpb=128b0c08cac16373b361726eebe72d5d5050b9c2;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 5308b346e..73fc922c4 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -765,7 +765,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix) * unrecognized non option is the beginning of the refs list * that continues up to the -- (if exists), and then paths. */ - argc = parse_options(argc, argv, options, grep_usage, + argc = parse_options(argc, argv, prefix, options, grep_usage, PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_STOP_AT_NON_OPTION | PARSE_OPT_NO_INTERNAL_HELP);