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

Re: [PATCH] teach the new "@{-1} syntax to "git branch"

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

Jay Soffian [off-list ref] writes:
On Sat, Feb 14, 2009 at 2:08 AM, Junio C Hamano [off-list ref] wrote:
quoted
This teaches the new "@{-1} syntax to refer to the previous branch to "git
branch".  After looking at somebody's faulty patch series on a topic
branch too long, if you decide it is not worth merging, you can just say:

   $ git checkout master
   $ git branch -D @{-1}

to get rid of it without having to type the name of the topic you now hate
so much for wasting a lot of your time.
I hope I'm not the person who motivated this new syntax. :-)
Don't worry.

The @{-1} syntax was added long before you started getting hyperactive
this round, but it will be in 1.6.2 and has been advertised as "usable
anywhere you can use a branch name", but in reality it is not.

I have been fixing up various places to match the reality with the claim.
I am making "git merge @{-1}" work now.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help