Re: [PATCH 3/3] prevent HEAD reflog to be interpreted as current branch reflog
- From
- Mark Wooding <mdw@distorted.org.uk>
- Date
- Feb 3, 2007, 17:07 UTC
- Message-ID
- <slrnes9ga2.3l6.mdw@metalzone.distorted.org.uk>
- In-Reply-To
- <200702021611.06029.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> wrote:
> to do. Asking for HEAD's reflog should be the same as asking for the > pointed-to-branch's reflog.
And what do you do when HEAD is detached?
I mean: I detach HEAD, and then ask about HEAD@{yesterday}. It'd be nonsensical for that to be an error, since HEAD surely did have a value yesterday. But it can't tell me where my current branch head was yesterday, because there isn't a current branch to tell me about.
HEAD@{date} referring to the HEAD reflog is the only sane thing to do.-- [mdw]