diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/checkout-index.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c index a7a5ee10f3..3bf342232b 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; |