From: Junio C Hamano Date: Thu, 19 Jan 2023 16:32:53 GMT Subject: Re: [PATCH v8 3/4] worktree add: add --orphan flag Message-ID: In-Reply-To: <230119.86zgaev8ko.gmgdl@evledraar.gmail.com> Ævar Arnfjörð Bjarmason 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.