Re: [PATCH] Add new @ shortcut for HEAD
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 30, 2013, 11:10 UTC
- Message-ID
- <CALkWK0mftWaC0Mi6QYm+iPk8bMgmS05--nevVKdOeOM9sPyg5w@mail.gmail.com>
- In-Reply-To
- <CACsJy8C34vN7SB62-+Z3BNZeroTB_vm-n-NMhFRbAuBPQZFKcA@mail.gmail.com>
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