summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-21 21:02:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-21 21:02:48 (GMT)
commit6d7e0c522eba6eb020192eb56ad8a01dc430197e (patch)
tree5b174c1d65fcf33cd346c9dfed7d928b00ab6b35
parent8d747e17e0c6e85070dc15787a185669a712ee84 (diff)
parentb04d930bbcd1dc7cbb4524063ec339a8feb3cc12 (diff)
downloadgit-6d7e0c522eba6eb020192eb56ad8a01dc430197e.zip
git-6d7e0c522eba6eb020192eb56ad8a01dc430197e.tar.gz
git-6d7e0c522eba6eb020192eb56ad8a01dc430197e.tar.bz2
Merge branch 'ap/maint-update-index-h-is-for-help'
"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
-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 ada1dff..5c7762e 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);