Re: [PATCH 3/3] prevent HEAD reflog to be interpreted as current branch reflog
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Feb 2, 2007, 11:02 UTC
- Message-ID
- <8c5c35580702020302g46f71fe3o24d7dc9490192cab@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0702021140340.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On 2/2/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 11 quoted lines
> Hi,
>
> On Fri, 2 Feb 2007, Jakub Narebski wrote:
>
> > Perhaps we should use @{...} to refer to reflog for HEAD, or use yet
> > another special notation?
>
> No.
>
> IMHO "bla@{yesterday}" should give you what "bla" pointed to, yesterday.
> In that sense, the proposed reflog on "HEAD" makes perfect sense.Since HEAD is a synonym for "current branch" everywhere else in git, while .git/logs/HEAD will be a log of detached HEAD (plus branch switches, I guess), I think the following makes perfect sense:
"HEAD@{yesterday}" = current branch, yesterday
"@{yesterday}" = detached head (no branch), yesterdayJust my 2c
-- larsh