diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-12-13 06:49:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-13 06:49:50 +0100 |
commit | 6758af89e4bf3f767e189da3e09c3c939162872d (patch) | |
tree | d0f25a4cd8c831949748fe9334aaad595e225cd1 /builtin/checkout-index.c | |
parent | Relnotes: remove items fixed on 'maint' (diff) | |
parent | update-index -h: show usage even with corrupt index (diff) | |
download | git-6758af89e4bf3f767e189da3e09c3c939162872d.tar.xz git-6758af89e4bf3f767e189da3e09c3c939162872d.zip |
Merge branch 'jn/git-cmd-h-bypass-setup'
* jn/git-cmd-h-bypass-setup:
update-index -h: show usage even with corrupt index
merge -h: show usage even with corrupt index
ls-files -h: show usage even with corrupt index
gc -h: show usage even with broken configuration
commit/status -h: show usage even with broken configuration
checkout-index -h: show usage even in an invalid repository
branch -h: show usage even in an invalid repository
Conflicts:
builtin/merge.c
Diffstat (limited to 'builtin/checkout-index.c')
-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 1ee3044307..f1fec24745 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; |