Re: What's cooking in git.git (Oct 2018, #01; Wed, 10)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 12, 2018, 13:36 UTC
- Message-ID
- <xmqqbm7zb81z.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <ca3b162d-d1c6-1ed1-cb20-4232d91f7b51@talktalk.net>
Phillip Wood <phillip.wood@talktalk.net> writes:
> It would be nice if the parsing used starts_with(option_name, user_text) > rather than strcmp() as well. Also I think --color-moved=no is valid as > a synonym of --no-color-moved but --color-moved-ws=no is not supported.
I am not sure about starts_with(). Do you mean we should accept "--color-mo", as that is a prefix of "--color-moved" that is not shared with any existing option, until we gain a different option "--color-more"?
If you mean "--color-moved-ws=no" (or "--no-color-moved-ws") as a way to countermand an earlier --color-moved-ws=<something> on the command line, I fully agree that it is a good idea.