i18n: git-init "Initialized [...] repository" message
[gitweb.git] / builtin / checkout-index.c
index 91fb9bfc624e3dc6556707e4a275c1d5543b5ce6..f1fec24745a854e77555a1b4bea3bc8d7ab04367 100644 (file)
@@ -218,7 +218,8 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
                OPT_BOOLEAN('a', "all", &all,
                        "checks out all files in the index"),
                OPT__FORCE(&force, "forces overwrite of existing files"),
-               OPT__QUIET(&quiet, "be quiet"),
+               OPT__QUIET(&quiet,
+                       "no warning for existing files and files not in index"),
                OPT_BOOLEAN('n', "no-create", &not_new,
                        "don't checkout new files"),
                { OPTION_CALLBACK, 'u', "index", &newfd, NULL,
@@ -240,6 +241,9 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
                OPT_END()
        };
 
+       if (argc == 2 && !strcmp(argv[1], "-h"))
+               usage_with_options(builtin_checkout_index_usage,
+                                  builtin_checkout_index_options);
        git_config(git_default_config, NULL);
        state.base_dir = "";
        prefix_length = prefix ? strlen(prefix) : 0;