]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/rev-parse.c
t/README: A new section about test coverage
[thirdparty/git.git] / builtin / rev-parse.c
index b676e296357c41cdca2f030d28b511ff986fdad9..a5a1c86e92720e8beefd8275acfc5df2dbdce175 100644 (file)
@@ -407,8 +407,8 @@ 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, " --");