Skip to content

Commit

Permalink
Merge branch 'ap/maint-update-index-h-is-for-help' into maint
Browse files Browse the repository at this point in the history
"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
Junio C Hamano committed Mar 26, 2013
2 parents 06d7abb + b04d930 commit 6201eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/update-index.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6201eb3

Please sign in to comment.