Re: [PATCH v3 0/4] completion.commands: fix multiple command removals
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 21, 2019, 02:58 UTC
- Message-ID
- <xmqq8sx9szlx.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190320180329.22280-1-tmz@pobox.com>
Todd Zullinger <tmz@pobox.com> writes:
> Other than a follow-up to update the commit reference in 4/4 > after 1/4 is in the final form on pu, I think this might be good. > If it's easier, we can skip 4/4 and I'll resend it after the > others are on pu.
A series that makes a single topic should expect to be read by a reader who understand the context of individual pieces in the topic, so it is more common to refer to an earlier step of a series from a later step without the object name. I would have written the log message like so instead:
completion: use __git when calling --list-cmds
As we made --list-cmds read the local configuration file in an
earlier step, the completion.commands variable respects repo-level
configuration. Use __git which ensures that the proper repo config
is consulted if the command line contains 'git -C /some/other/repo'.The whole series looks good to me. Thanks for working on it.