Re: [PATCH] Add new @ shortcut for HEAD

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

 



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}.

Many people are confused by this patch (reflog? HEAD@ versus master@?
incomplete due to { omission?), and I'm not sure HEAD@ or master@ are
even useful.  This confusion can be avoided completely if the patch
has the exact same effect as symbolic-ref'ing @ to HEAD.
--
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]