Re: [PATCH] update-index: allow "-h" to also display options
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 23, 2013, 21:25 UTC
- Message-ID
- <7vfw0m7mff.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CALWbr2x4En9qof7hFL+Onh1M1080=-OaJtAsNYY01qRj5R1a1w@mail.gmail.com>
Antoine Pelisse <apelisse@gmail.com> writes:
Show 19 quoted lines
>> diff --git a/builtin/update-index.c b/builtin/update-index.c >> index ada1dff..3071ee6 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[0], options); >> >> git_config(git_default_config, NULL); >> > > Ok I just realized that > > usage_with_options(update_index_usage, options); > > would be better...
Yeah, that probably is easier on the eyes, even though they are equivalent.
Thanks, will queue.