Re: [PATCH 05/11] completion: add test showing subpar completion for git switch --orphan
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 28, 2020, 18:10 UTC
- Message-ID
- <xmqqsggn32i7.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CA+P7+xoBnS8huHiU+QM8x6LRiSDRYVVS2pduv6i_qrwb1ZS7fg@mail.gmail.com>
Jacob Keller <jacob.keller@gmail.com> writes:
Show 7 quoted lines
>> And that same "is this really helping?" reasoning applies equally to >> the "--orphan" option. >> >> I dunno. >> > > Fair enough, new branches based on previous branches makes sense.
I actually do not have a strong opinion either way. I just wanted to say that it would be good to make it consistent across "checkout -b", "switch -c" and "checkout/switch --orphan".
It would be nice if "checkout -B" and "switch -C" pair offered existing branches, as the intention of using the capital letter is clear---the user wants to overwrite an existing one.
On the other hand, I am OK if "checkout -b", "switch -c" and "--orphan" offered either:
(1) nothing, as your patch does, or
(2) all branches, except for the currently checked out one.
It would be preferrable if they did the same thing.
Thanks.