Re: [PATCH] refs.c: interpret @ as HEAD
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 30, 2013, 17:15 UTC
- Message-ID
- <CALkWK0nnmzV0dcZ9avO9zDPhnQh9wkF7stA77cNycoXfecfUuw@mail.gmail.com>
- In-Reply-To
- <CACsJy8B3PpzidvAHado=y3ZromzROidmHh_OW9ZCOoFegzmQ3Q@mail.gmail.com>
Duy Nguyen wrote:
> We could put still ref aliases > into the same ref namespace, with lower precedence that actual refs, > so no new syntax required.
Actually, ref-alises are the right way to solve the problem. Recursive symref peeling is a bad idea: I can't take my aliases with me, and they complicate unnecessarily.
Any thoughts on how to implement it? Should it go as deep as resolve_ref_unsafe()?