Merge branch 'nd/checkout-noisy'
[gitweb.git] / builtin / checkout-index.c
index bada491f5808db38a34ad40fae19bd780aa3354c..a2a726ad8d8fa65d2fbcd1b111d71bad61c5cee8 100644 (file)
@@ -134,6 +134,8 @@ static const char * const builtin_checkout_index_usage[] = {
 static int option_parse_stage(const struct option *opt,
                              const char *arg, int unset)
 {
+       BUG_ON_OPT_NEG(unset);
+
        if (!strcmp(arg, "all")) {
                to_tempfile = 1;
                checkout_stage = CHECKOUT_ALL;