Re: [PATCH v3 1/8] clone: teach --detach option
- From
Glen Choo <chooglen@google.com>
- Date
- Oct 28, 2022, 22:55 UTC
- Message-ID
- <kl6lbkpvd0de.fsf@chooglen-macbookpro.roam.corp.google.com>
- In-Reply-To
- <xmqq7d0jhaw6.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > >> Wouldn't it the same thing to do "git clone -n && git checkout >> --detach"? > > Not exactly. It still creates the initial branch and points HEAD at > it. It is so close, which is a bit disappointing, though.
Yes. I was quite hopeful that "git clone -n" would just do the right thing too :/
I'm guessing that changing the behavior of "git clone -n" is a non-option, since there may be users relying on it.
So a better way forward is to add the new flag, which I imagine might be useful to certain end users.