Re: [PATCH 3/3] Teach "git branch" about --new-workdir
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 22, 2007, 21:25 UTC
- Message-ID
- <Pine.LNX.4.64.0707222223460.14781@racer.site>
- In-Reply-To
- <Pine.LNX.4.64.0707222205050.23426@reaper.quantumfyre.co.uk>
Hi,
On Sun, 22 Jul 2007, Julian Phillips wrote:
Show 11 quoted lines
> On Sun, 22 Jul 2007, Johannes Schindelin wrote: > > > IMHO this is a better syntax than what is in contrib/, and "git > > branch" is probably the right place for such a thing, from a > > user's perspective. > > Surely checkout would make more sense than branch? You are effectively > checking out into a new directory ... also you may want to get an > existing branch (certainly most of my usage of new-workdir is checking > out existing branches, e.g. to look at - as in build and play with - an > interesting branch that someone else has pushed out).
My rationale here was:
- to make sure that the user cannot check out the same branch as in the current repo, _or some other workdir of it_, and
- to have finer grained lock control, as well as respecting has_symlinks.
Ciao, Dscho