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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Soffian <jaysoffian@xxxxxxxxx> writes:

> On Sat, Feb 14, 2009 at 2:08 AM, Junio C Hamano <gitster@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux