Re: [PATCH] Add new @ shortcut for HEAD
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 30, 2013, 22:08 UTC
- Message-ID
- <CAMP44s2FqsK-46QVjHYFkWTqCkcAHZUw+XEbZdV6y=5+sZCJ=A@mail.gmail.com>
- In-Reply-To
- <CALkWK0m6VeHxwi4ytSFrib2r5GS1acph+WA+YXD80KuBhr74+g@mail.gmail.com>
On Tue, Apr 30, 2013 at 1:45 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 6 quoted lines
> Felipe Contreras wrote:
>> It's not. The same way master^0^0~4 is not useful, yet it's works;
>> it's a logical result from the syntax.
>
> It's logical if you explain @ as a shortcut for @{0}, and make
> @{0}@{1} resolve somehow [*1*].But @{-1}@{1} does resolve, and so does @{u}@{1}. So @ would be a shortcut of @{this ref}, a no-op on the ref.
-- Felipe Contreras