Re: [PATCH 2/2] checkout: introduce "--to-branch" option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 13, 2021, 21:36 UTC
- Message-ID
- <xmqqr1agb313.fsf@gitster.g>
- In-Reply-To
- <211213.86r1ag6ztx.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I don't see how it's fundimentally different than the DWIM logic of > taking "<name>" and seeing that there's only one "refs/heads/<name>", > and giving up in other cases where we get ambiguous reference names that > we can't resolve.
In that example, once you obtained a local branch whose name is <name>, it is obvious how you would work with that. Your next "git checkout <name>" would work on the local one, and only the initial one does something magical.
Which makes quite a lot of sense.
There is no similarity in it with "--to-branch <tag>" that is being discussed here.