Re: BUG 1.7.9: git branch fails to create new branch when --edit-description is used
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 29, 2012, 21:49 UTC
- Message-ID
- <7vzkd6dvrm.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F24E78A.7060502@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 6 quoted lines
> On 01/28/2012 08:27 AM, Junio C Hamano wrote: >> Michael Haggerty <mhagger@alum.mit.edu> writes: >> > I vote for an error. Otherwise a typo in the branch name would lead to > the description's apparent disappearance into Nirvana. An error would, > for example, have made it clear to the OP what was happening.
I agree with this statement.
Unless or until we update --edit-description to create a new branch when given a name of a branch that does not exist, the existing behaviour is simply an accident waiting to happen.