From: Junio C Hamano <gitster@pobox.com>
To: Antoine Pelisse <apelisse@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: [PATCH] update-index: allow "-h" to also display options
Date: Sat, 23 Feb 2013 13:25:08 -0800 [thread overview]
Message-ID: <7vfw0m7mff.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CALWbr2x4En9qof7hFL+Onh1M1080=-OaJtAsNYY01qRj5R1a1w@mail.gmail.com> (Antoine Pelisse's message of "Sat, 23 Feb 2013 19:13:15 +0100")
Antoine Pelisse <apelisse@gmail.com> writes:
>> 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.
prev parent reply other threads:[~2013-02-23 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-23 18:10 [PATCH] update-index: allow "-h" to also display options Antoine Pelisse
2013-02-23 18:13 ` Antoine Pelisse
2013-02-23 21:25 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vfw0m7mff.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=apelisse@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox