Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2 2/2] Teach @{-1} to git merge

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:17

Deskin Miller [off-list ref] 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 <name> [<name>]' does expect a branch name, not a random
extended SHA-1 expression.

I'd say it is a bug.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help