From: Junio C Hamano Date: Tue, 30 Apr 2013 18:08:56 GMT Subject: Re: [PATCH] refs.c: interpret @ as HEAD Message-ID: <7vwqrjdh6v.fsf@alter.siamese.dyndns.org> In-Reply-To: Ramkumar Ramachandra writes: > 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.