X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fcheckout-index.c;h=1ee30443074bbae67a402c5397b939a716f2a191;hb=20f84c8f56519b49fa91bb6cef8f8978c2ab4e09;hp=a7a5ee10f32d52c7555f85f2dcf6c567425488dd;hpb=56bfacef7966553530532d58c07787754add2465;p=git.git diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c index a7a5ee10f..1ee304430 100644 --- a/builtin/checkout-index.c +++ b/builtin/checkout-index.c @@ -155,7 +155,7 @@ static void checkout_all(const char *prefix, int prefix_length) } static const char * const builtin_checkout_index_usage[] = { - "git checkout-index [options] [--] ...", + "git checkout-index [options] [--] [...]", NULL }; @@ -217,9 +217,9 @@ 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__QUIET(&quiet), + OPT__FORCE(&force, "forces overwrite of existing files"), + OPT__QUIET(&quiet, + "no warning for existing files and files not in index"), OPT_BOOLEAN('n', "no-create", ¬_new, "don't checkout new files"), { OPTION_CALLBACK, 'u', "index", &newfd, NULL,