Re: [PATCH] checkout --track: make up a sensible branch name if '-b' was omitted
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 9, 2008, 18:44 UTC
- Message-ID
- <7vtzdu6nb7.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0808091559460.24820@pacific.mpi-cbg.de.mpi-cbg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
> What does the user most likely want with this command? > > $ git checkout --track origin/next > > Exactly. A branch called 'next', that tracks origin's branch 'next'.
I like this.
An explicit --track request from the command line (as opposed to happening to have "branch.autosetupmerge" configuration) is a very good cue that what the user wants to do is not to take a peek on a detached HEAD but a more permanent playpen created.