Re: creation of empty branches

2012-11-15 Thread Jeff King
On Wed, Nov 14, 2012 at 01:27:33PM -0800, Junio C Hamano wrote: > > Instead of > > fatal: Not a valid object name: 'master'. > > perhaps > > fatal: Cannot create branch 'foo' from empty branch 'master'. To > > rename 'master' use 'git branch -m master foo'. > > The first new sentence is a

Re: creation of empty branches

2012-11-14 Thread Junio C Hamano
Andrew Ardill writes: > Since git branch has the default behaviour to create a branch 'in the > background' it makes sense to fail when trying to create a new branch > this way from an empty branch. The error message should be improved to > handle this edge case in a nicer way. If we allow for re