Re: [PATCH v8 3/4] worktree add: add --orphan flag
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 19, 2023, 16:32 UTC
- Message-ID
- <xmqq1qnq32oa.fsf@gitster.g>
- In-Reply-To
- <230119.86zgaev8ko.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I also think that UX suggestion is sensible, but if we do that we > shouldn't just apply that to "git worktree", but also change the the > corresponding "git switch" UX, on which this new "git worktree --orphan" > is modeled.
But the thing is that "worktree --orphan" that wants to implicitly infer the name of the branch out of the basename of the worktree cannot be sensibly modeled after "switch" or "checkout" that do not have such a dwimmery.
In any case, fixing UI mistakes after the fact is always painful once it is in the released version. When we know there is a new UI mistake in an unreleased version, it is sensible to grab the rare opportunity that we can avoid such a costly fixes later.
So, I am not quite convinced by what you said, at least not yet.
Thanks.