Re: [PATCH] teach the new "@{-1} syntax to "git branch"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 14, 2009, 07:21 UTC
- Message-ID
- <7vzlgpxz4g.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <76718490902132311j5add87bcpb103c951a8192b05@mail.gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 12 quoted lines
> On Sat, Feb 14, 2009 at 2:08 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> 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.