X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=builtin-grep.c;h=73fc922c4995369c0ca86c01200e2a0ea39161ab;hb=95a877a34c3838a92a99794ebc3b082f6f525899;hp=5308b346e69a50d7695b26f3b8e00bfdf71e1dd2;hpb=c6e73936b9ea26fcad0d77d68194545082343c43;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);