Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 6d7e0c522eba6eb020192eb56ad8a01dc430197e 2 parents 8d747e1 + b04d930
@gitster gitster authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  builtin/update-index.c
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.