Re: [PATCH] Add new @ shortcut for HEAD
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 30, 2013, 10:16 UTC
- Message-ID
- <CACsJy8C34vN7SB62-+Z3BNZeroTB_vm-n-NMhFRbAuBPQZFKcA@mail.gmail.com>
- In-Reply-To
- <CALkWK0naGx6Vrb3_iZbXefQqmwOhaTSRXxBT6K-cheiUwr3Ptw@mail.gmail.com>
On Tue, Apr 30, 2013 at 2:35 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 7 quoted lines
> Michael Haggerty wrote:
>> git symbolic-ref -m "Create @ alias for HEAD" @ HEAD
>
> I find this very interesting. I already have a symbolic ref H
> pointing to HEAD, but it has some quirks: H@{u} complains that H is an
> invalid branch for example. When I create the symbolic-ref @, I'm not
> _exactly_ creating a synonym for HEAD: @{u} works, not @@{u}.Habits aside, why do you do H@{u} when @{u} is enough (and shorter)? -- Duy