From: Junio C Hamano Date: Fri, 27 Feb 2009 05:24:21 GMT Subject: Re: [PATCH v2 2/2] Teach @{-1} to git merge Message-ID: <7veixkpi4a.fsf@gitster.siamese.dyndns.org> In-Reply-To: <86d4c5e00902262027y13b19eb7nf89a45e83b986801@mail.gmail.com> Deskin Miller writes: > I did 'git branch -M @{-1}' yesterday and ended up renaming my branch > to refs/heads/@{-1}. Personally my usage felt like it should work > (but of course I think that); curious to know what others think, if > this is a bug. The @{-n} notation is supposed to be usable anywhere you would write a branch name and should behave as if you wrote the name itself. And 'git branch -M []' does expect a branch name, not a random extended SHA-1 expression. I'd say it is a bug.