Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-21 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 19.07.2014 00:18: > Dennis Kaarsemaker writes: > >> My use case for this is checking out the same branch (or commit, so >> already on a detached HEAD) in multiple different places to run >> independent actions (e.g. make test with different compiler options, or

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Junio C Hamano
Dennis Kaarsemaker writes: > My use case for this is checking out the same branch (or commit, so > already on a detached HEAD) in multiple different places to run > independent actions (e.g. make test with different compiler options, or > creating several different packages) and I would really ap

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Dennis Kaarsemaker
On vr, 2014-07-18 at 10:36 -0700, Junio C Hamano wrote: > Michael J Gruber writes: > > > I really like the new --to feature and will convert all my "new workdir" > > checkouts to that. But that detached checkout is so easy to miss - in fact > > I noticed it only when I compared "new-workdir" to "

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Junio C Hamano
Michael J Gruber writes: > I really like the new --to feature and will convert all my "new workdir" > checkouts to that. But that detached checkout is so easy to miss - in fact > I noticed it only when I compared "new-workdir" to "checkout --to" for a > test repo with one branch, to see what a co

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Max Kirillov
Hi. On Fri, Jul 18, 2014 at 4:27 PM, Michael J Gruber wrote: > Duy Nguyen venit, vidit, dixit 18.07.2014 12:58: >> This is what this series needs, user's opinions (bad or good). Actually, if options "-b branch" works with the "--to" (does it?), then user probably shouldn't need to create detache

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Michael J Gruber
Duy Nguyen venit, vidit, dixit 18.07.2014 12:58: > On Fri, Jul 18, 2014 at 4:50 PM, Michael J Gruber > wrote: >> I really like the new --to feature and will convert all my "new workdir" >> checkouts to that. But that detached checkout is so easy to miss - in fact >> I noticed it only when I compar

Re: [PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Duy Nguyen
On Fri, Jul 18, 2014 at 4:50 PM, Michael J Gruber wrote: > I really like the new --to feature and will convert all my "new workdir" > checkouts to that. But that detached checkout is so easy to miss - in fact > I noticed it only when I compared "new-workdir" to "checkout --to" for a > test repo wi

[PATCH] checkout: indicate when a detached head is checked out for a branch

2014-07-18 Thread Michael J Gruber
In a setup with more than 1 workdir, it can happen that a user requests to checkout a branch that is already checked out somewhere else. The current "hint" about this gives the impression that it is merely warning about this fact. Actually, "checkout" changes its behavior in such a situation from