Re: [PATCH] refs.c: interpret @ as HEAD
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 30, 2013, 18:08 UTC
- Message-ID
- <7vwqrjdh6v.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CALkWK0kLZ9WLVcPBWuQZCjOku4A+WQ7=YeooPmKGpk9HuGYQnw@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 5 quoted lines
> Felipe Contreras wrote:
>> Why would HEAD^0^0~4 work? Because the syntax is recursive.
>
> That's because you can compose with ^ and ^, while you can't with @
> and @. Does @{0}@{0} resolve?@{-1}@{0} does. That means @{0} is a revision and not a ref, but @{-1} is.
'"@" given alone' has to be a ref if we want @@{5.minutes.ago} to resolve.