Skip to content

Commit 357d7f1

Browse files
committed
Merge branch 'ap/maint-update-index-h-is-for-help' into maint-1.8.1
* ap/maint-update-index-h-is-for-help: update-index: allow "-h" to also display options
2 parents a134a60 + b04d930 commit 357d7f1

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)