add OPT__FORCE
[git/git.git] / builtin / checkout-index.c
index 7ba0913..91fb9bf 100644 (file)
@@ -217,8 +217,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
        struct option builtin_checkout_index_options[] = {
                OPT_BOOLEAN('a', "all", &all,
                        "checks out all files in the index"),
-               OPT_BOOLEAN('f', "force", &force,
-                       "forces overwrite of existing files"),
+               OPT__FORCE(&force, "forces overwrite of existing files"),
                OPT__QUIET(&quiet, "be quiet"),
                OPT_BOOLEAN('n', "no-create", &not_new,
                        "don't checkout new files"),