aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-26 12:42:42 -0700
committerJunio C Hamano <gitster@pobox.com>2013-03-26 12:42:42 -0700
commit6201eb3e65ae6bc9cd14f3497cd3ca12ffc8fbd3 (patch)
treec31061579013343685c943fad963da4776e00d8f /builtin
parent06d7abb13c1a948f376f05bbd708712c512e6e1b (diff)
parentb04d930bbcd1dc7cbb4524063ec339a8feb3cc12 (diff)
downloadgit-6201eb3e65ae6bc9cd14f3497cd3ca12ffc8fbd3.tar.gz
git-6201eb3e65ae6bc9cd14f3497cd3ca12ffc8fbd3.tar.xz
Merge branch 'ap/maint-update-index-h-is-for-help' into maint
"git update-index -h" did not do the usual "-h(elp)" thing. * ap/maint-update-index-h-is-for-help: update-index: allow "-h" to also display options
Diffstat (limited to 'builtin')
-rw-r--r--builtin/update-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index ada1dff84..5c7762eef 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -796,7 +796,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
};
if (argc == 2 && !strcmp(argv[1], "-h"))
- usage(update_index_usage[0]);
+ usage_with_options(update_index_usage, options);
git_config(git_default_config, NULL);