Merge branch 'dm/stash-k-i-p'
[gitweb.git] / builtin / rev-parse.c
index 95c59fa686de7c8a90ce935aecc35bc83c68076d..adb1cae4f27ad3993aa2418f7b0fd355d19cdab9 100644 (file)
@@ -48,6 +48,10 @@ static int is_rev_argument(const char *arg)
                "--max-count=",
                "--min-age=",
                "--no-merges",
+               "--min-parents=",
+               "--no-min-parents",
+               "--max-parents=",
+               "--no-max-parents",
                "--objects",
                "--objects-edge",
                "--parents",
@@ -408,7 +412,8 @@ static int cmd_parseopt(int argc, const char **argv, const char *prefix)
        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));
+                       (stop_at_non_option ? PARSE_OPT_STOP_AT_NON_OPTION : 0) |
+                       PARSE_OPT_SHELL_EVAL);
 
        strbuf_addf(&parsed, " --");
        sq_quote_argv(&parsed, argv, 0);