From: Johannes Schindelin Date: Sun, 22 Jul 2007 21:25:40 GMT Subject: Re: [PATCH 3/3] Teach "git branch" about --new-workdir Message-ID: In-Reply-To: Hi, On Sun, 22 Jul 2007, Julian Phillips wrote: > 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