X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Frev-parse.c;h=a5a1c86e92720e8beefd8275acfc5df2dbdce175;hb=452c6d506b1a6dcf24d4ceaa592afc39c1c1a60e;hp=8fbf9d0db6f40aa8c7cb61d72d0f44446de46826;hpb=60335534a6ac52d4d3a372a5b56df5a57a4463d1;p=git.git diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c index 8fbf9d0db..a5a1c86e9 100644 --- a/builtin/rev-parse.c +++ b/builtin/rev-parse.c @@ -407,8 +407,9 @@ static int cmd_parseopt(int argc, const char **argv, const char *prefix) ALLOC_GROW(opts, onb + 1, osz); memset(opts + onb, 0, sizeof(opts[onb])); argc = parse_options(argc, argv, prefix, opts, usage, - keep_dashdash ? PARSE_OPT_KEEP_DASHDASH : 0 | - stop_at_non_option ? PARSE_OPT_STOP_AT_NON_OPTION : 0); + (keep_dashdash ? PARSE_OPT_KEEP_DASHDASH : 0) | + (stop_at_non_option ? PARSE_OPT_STOP_AT_NON_OPTION : 0) | + PARSE_OPT_SHELL_EVAL); strbuf_addf(&parsed, " --"); sq_quote_argv(&parsed, argv, 0);