Skip to content

Commit 6201eb3

Browse files
committed
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
2 parents 06d7abb + b04d930 commit 6201eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/update-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
796796
};
797797

798798
if (argc == 2 && !strcmp(argv[1], "-h"))
799-
usage(update_index_usage[0]);
799+
usage_with_options(update_index_usage, options);
800800

801801
git_config(git_default_config, NULL);
802802

0 commit comments

Comments
 (0)