Re: [PATCH] Add new @ shortcut for HEAD

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

 



Duy Nguyen wrote:
> Habits aside, why do you do H@{u} when @{u} is enough (and shorter)?

I don't.  In the @{} spec, HEAD is implicit.  My initial itch was that
HEAD is not implicit in the ~<n> spec, and started off by thinking how
we could make HEAD implicit specifically for that case [1].  Since
then, we've realized that it's probably easier (and more useful) to
have a synonym for HEAD that works in all specs.  As a side effect,
master..@ will work too.  I was looking into the repercussions of
this, and noticed that Michael's @ symref is not equivalent to my H
symref.  I previously thought that all symrefs would behave in exactly
the same manner, but @ clearly seems to be a special case: I was
merely pointing this out with an example.

[1]: http://article.gmane.org/gmane.comp.version-control.git/222343
--
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]