X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fcheckout-index.c;h=f1fec24745a854e77555a1b4bea3bc8d7ab04367;hb=ffc5e3c958b66fb4babeba01483cc924bc2957a5;hp=1ee30443074bbae67a402c5397b939a716f2a191;hpb=23778ae9a08e9324f03898760b9e20b6b2dd6e23;p=git.git diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c index 1ee304430..f1fec2474 100644 --- a/builtin/checkout-index.c +++ b/builtin/checkout-index.c @@ -241,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;