Re: [PATCH] refs.c: interpret @ as HEAD
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 30, 2013, 18:50 UTC
- Message-ID
- <CALkWK0nBs0R3UJMN=JqcCFetQ4KCxE9XhqGp=83b7DiMdysfLw@mail.gmail.com>
- In-Reply-To
- <CALkWK0n=Pkutg9cMXYV_+QmSXLROuU46wCEJfQkxEcNMFsOTgQ@mail.gmail.com>
Ramkumar Ramachandra wrote:
> So, without the .git/@, @@{1} will complain that
> the reflog only has 1 entry (in other words, it is "correct" but not
> useful).Even better idea. When not overridden, @@{<n>} will show the reflog for HEAD. To the user, it looks like @ is behaving like a true ref by keeping a reflog, but we're just cheating.