Re: [PATCH] Add new @ shortcut for HEAD

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

 



Junio C Hamano wrote:
> [...]
> You can't go any simpler than that rule, and there is no room for
> confusion if that rule is properly implemented.

In other words: the sequence "@" is short for "HEAD".  Isn't that
_exactly_ what I implemented in my two-liner?

However, I'm tilting towards respecting .git/@ as a manual override.
Why?  Because we'd have to either claim that git symbolic-ref @ HEAD
is a noop, or deny it altogether (by saying that @ is not a valid
symbolic ref).  The latter approach obviously sounds more sensible,
but I don't like unnecessarily eating up @.
--
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]