# reflog/show question

11 messages from 2008-04-28 to 2008-05-02. Participants: Geoff Russell, Jeff King.
Thread: https://gitlist.dev/t/13299

## Geoff Russell, 2008-04-28 01:59

Subject: reflog/show question
Message-ID: <93c3eada0804271859p1b4d8b52i811bdc5e42672822@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804271859p1b4d8b52i811bdc5e42672822%40mail.gmail.com

```
     git show HEAD@{"3 minutes ago"}

works as I expect, but

     git show HEAD@{"3 minutes ago"}:data/node/node.data

gives me a message:

       warning: Log for 'HEAD' only goes back to Mon, 28 Apr 2008
10:18:37 +0930.
       fatal: ambiguous argument
'HEAD@{3.minutes.ago}:data/node/node.newds1': unknown revision or path
not in the working tree.
       Use '--' to separate paths from revisions

However,

     git show HEAD@{2}:data/node/node.data

shows me the file as it was 3 minutes ago.

I'm using 1.5.4.rc4

Cheers,

Geoff Russell

```

## Jeff King, 2008-04-28 09:24

Subject: Re: reflog/show question
Message-ID: <20080428092410.GD16153@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080428092410.GD16153%40sigill.intra.peff.net
In-Reply-To: <93c3eada0804271859p1b4d8b52i811bdc5e42672822@mail.gmail.com>

```
On Mon, Apr 28, 2008 at 11:29:17AM +0930, Geoff Russell wrote:

>      git show HEAD@{"3 minutes ago"}
> 
> works as I expect, but
> 
>      git show HEAD@{"3 minutes ago"}:data/node/node.data
> 
> gives me a message:
> 
>        warning: Log for 'HEAD' only goes back to Mon, 28 Apr 2008
> 10:18:37 +0930.
>
> [...]
> I'm using 1.5.4.rc4

I can't reproduce here, using the current master or v1.5.4-rc4. If I
have a matching reflog, both work. And if I choose a much older time
(say, "1.year.ago"), then both fail. What are the entries in your
reflog (.git/logs/HEAD)?

-Peff

```

## Geoff Russell, 2008-04-29 01:47

Subject: Re: reflog/show question
Message-ID: <93c3eada0804281847q267611aeke51b482cfbe100d6@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804281847q267611aeke51b482cfbe100d6%40mail.gmail.com
In-Reply-To: <20080428092410.GD16153@sigill.intra.peff.net>

```
On Mon, Apr 28, 2008 at 6:54 PM, Jeff King <peff@peff.net> wrote:
> On Mon, Apr 28, 2008 at 11:29:17AM +0930, Geoff Russell wrote:
>
>  >      git show HEAD@{"3 minutes ago"}
>  >
>  > works as I expect, but
>  >
>  >      git show HEAD@{"3 minutes ago"}:data/node/node.data
>  >
>  > gives me a message:
>  >
>  >        warning: Log for 'HEAD' only goes back to Mon, 28 Apr 2008
>  > 10:18:37 +0930.
>  >
>  > [...]
>
> > I'm using 1.5.4.rc4
>
>  I can't reproduce here, using the current master or v1.5.4-rc4. If I
>  have a matching reflog, both work. And if I choose a much older time
>  (say, "1.year.ago"), then both fail. What are the entries in your
>  reflog (.git/logs/HEAD)?

I think its something to do with the filename and my commit comments.
The command
works as expected on other files.  The HEAD file is attached.

Geoff

>
>  -Peff
>



-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```

## Jeff King, 2008-04-29 20:12

Subject: Re: reflog/show question
Message-ID: <20080429201214.GB20509@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080429201214.GB20509%40sigill.intra.peff.net
In-Reply-To: <93c3eada0804281847q267611aeke51b482cfbe100d6@mail.gmail.com>

```
On Tue, Apr 29, 2008 at 11:17:09AM +0930, Geoff Russell wrote:

> >  >      git show HEAD@{"3 minutes ago"}
> >  >
> >  > works as I expect, but
> >  >
> >  >      git show HEAD@{"3 minutes ago"}:data/node/node.data
> >  >
> >  > gives me a message:
> >  >
> >  >        warning: Log for 'HEAD' only goes back to Mon, 28 Apr 2008
> >  >        10:18:37 +0930.
> >  >
> >
> I think its something to do with the filename and my commit comments.
> The command works as expected on other files.  The HEAD file is
> attached.

Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
actually _has_ the file data/node/node.data? If it doesn't, then you get
the error message you saw. And it may be that the reflog warning happens
in _both_ cases, only you don't see it in the first because it is masked
by the pager. In v1.5.5, that output is now sent to the pager, instead.

-Peff

```

## Geoff Russell, 2008-04-29 22:06

Subject: Re: reflog/show question
Message-ID: <93c3eada0804291506n7432b348p2b726926b5fc8f80@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804291506n7432b348p2b726926b5fc8f80%40mail.gmail.com
In-Reply-To: <20080429201214.GB20509@sigill.intra.peff.net>

```
On 4/30/08, Jeff King <peff@peff.net> wrote:
> On Tue, Apr 29, 2008 at 11:17:09AM +0930, Geoff Russell wrote:
>
>  > >  >      git show HEAD@{"3 minutes ago"}
>  > >  >
>  > >  > works as I expect, but
>  > >  >
>  > >  >      git show HEAD@{"3 minutes ago"}:data/node/node.data
>  > >  >
>  > >  > gives me a message:
>  > >  >
>  > >  >        warning: Log for 'HEAD' only goes back to Mon, 28 Apr 2008
>  > >  >        10:18:37 +0930.
>  > >  >
>  > >
>
> > I think its something to do with the filename and my commit comments.
>  > The command works as expected on other files.  The HEAD file is
>  > attached.
>
>
> Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
>  actually _has_ the file data/node/node.data? If it doesn't, then you get
>  the error message you saw. And it may be that the reflog warning happens
>  in _both_ cases, only you don't see it in the first because it is masked
>  by the pager. In v1.5.5, that output is now sent to the pager, instead.
>
>  -Peff
>

Later today (touch wood) I'll prepare as small a test case as
possible, then send
a tar.gz of the .git directory. Okay?

Geoff.


-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```

## Jeff King, 2008-04-29 23:07

Subject: Re: reflog/show question
Message-ID: <20080429230715.GB22598@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080429230715.GB22598%40sigill.intra.peff.net
In-Reply-To: <93c3eada0804291506n7432b348p2b726926b5fc8f80@mail.gmail.com>

```
On Wed, Apr 30, 2008 at 07:36:23AM +0930, Geoff Russell wrote:

> > Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
> >  actually _has_ the file data/node/node.data? If it doesn't, then you get
> 
> Later today (touch wood) I'll prepare as small a test case as
> possible, then send
> a tar.gz of the .git directory. Okay?

That would be great, thanks.

-Peff

```

## Geoff Russell, 2008-04-30 00:12

Subject: Re: reflog/show question
Message-ID: <93c3eada0804291712u19c1047bl6d44df4ca025bb4d@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804291712u19c1047bl6d44df4ca025bb4d%40mail.gmail.com
In-Reply-To: <20080429230715.GB22598@sigill.intra.peff.net>

```
On Wed, Apr 30, 2008 at 8:37 AM, Jeff King <peff@peff.net> wrote:
> On Wed, Apr 30, 2008 at 07:36:23AM +0930, Geoff Russell wrote:
>
>  > > Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
>  > >  actually _has_ the file data/node/node.data? If it doesn't, then you get
>  >
>
> > Later today (touch wood) I'll prepare as small a test case as
>  > possible, then send
>  > a tar.gz of the .git directory. Okay?
>
>  That would be great, thanks.

Attached is tar.gz of working directory (.) - so unpack in a new directory.

       git show HEAD@{"N seconds ago"}:data/node/.gitignore

works fine for values of N back to creationof file

But:

       git show HEAD@{"N seconds ago"}:data/node/node.newds1

doesn't work for any values of N.

During my attempts to create this example, I managed created a
directory which where
the show command failed for both files, but when I changed the commit
message, the
show worked for .gitignore but not the node file. Hence my suspicion
of that the slashes
in the path are being interpreted as requesting a commit message match ...?

I hope you can track it down, I will install the latest version of git
later on today to
confirm the behaviour is still happening.

Thanks,
Geoff Russell

>
>  -Peff
>



-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```

## Geoff Russell, 2008-04-30 00:26

Subject: Re: reflog/show question
Message-ID: <93c3eada0804291726l454ccbbv96217d6657d79ded@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804291726l454ccbbv96217d6657d79ded%40mail.gmail.com
In-Reply-To: <93c3eada0804291712u19c1047bl6d44df4ca025bb4d@mail.gmail.com>

```
On Wed, Apr 30, 2008 at 9:42 AM, Geoff Russell
<geoffrey.russell@gmail.com> wrote:
>
> On Wed, Apr 30, 2008 at 8:37 AM, Jeff King <peff@peff.net> wrote:
>  > On Wed, Apr 30, 2008 at 07:36:23AM +0930, Geoff Russell wrote:
>  >
>  >  > > Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
>  >  > >  actually _has_ the file data/node/node.data? If it doesn't, then you get
>  >  >
>  >
>  > > Later today (touch wood) I'll prepare as small a test case as
>  >  > possible, then send
>  >  > a tar.gz of the .git directory. Okay?
>  >
>  >  That would be great, thanks.
>
>  Attached is tar.gz of working directory (.) - so unpack in a new directory.
>
>        git show HEAD@{"N seconds ago"}:data/node/.gitignore
>
>  works fine for values of N back to creationof file
>
>  But:
>
>        git show HEAD@{"N seconds ago"}:data/node/node.newds1
>
>  doesn't work for any values of N.
>
>  During my attempts to create this example, I managed created a
>  directory which where
>  the show command failed for both files, but when I changed the commit
>  message, the
>  show worked for .gitignore but not the node file. Hence my suspicion
>  of that the slashes
>  in the path are being interpreted as requesting a commit message match ...?
>
>  I hope you can track it down, I will install the latest version of git
>  later on today to
>  confirm the behaviour is still happening.

I just confirmed behaviour is still the same in 1.5.5

Geoff.



>
>  Thanks,
>  Geoff Russell
>
>  >
>  >  -Peff
>
>
> >
>
>
>
>  --
>  6 Fifth Ave,
>  St Morris, S.A. 5068
>  Australia
>  Ph: 041 8805 184 / 08 8332 5069
>



-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```

## Geoff Russell, 2008-05-01 00:15

Subject: Re: reflog/show question
Message-ID: <93c3eada0804301715r724e8b8xf0ed64ebe016beea@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0804301715r724e8b8xf0ed64ebe016beea%40mail.gmail.com
In-Reply-To: <93c3eada0804291726l454ccbbv96217d6657d79ded@mail.gmail.com>

```
N.B. This problem has vanished -- which means its probably something I
messed up. I haven't
worked out what yet, but I will.  Apologies for any time wasted.

Cheers,
Geoff.

On Wed, Apr 30, 2008 at 9:56 AM, Geoff Russell
<geoffrey.russell@gmail.com> wrote:
>
> On Wed, Apr 30, 2008 at 9:42 AM, Geoff Russell
>  <geoffrey.russell@gmail.com> wrote:
>  >
>  > On Wed, Apr 30, 2008 at 8:37 AM, Jeff King <peff@peff.net> wrote:
>  >  > On Wed, Apr 30, 2008 at 07:36:23AM +0930, Geoff Russell wrote:
>  >  >
>  >  >  > > Hmm. Are you sure that the commit you got from HEAD@{"3 minutes ago"}
>  >  >  > >  actually _has_ the file data/node/node.data? If it doesn't, then you get
>  >  >  >
>  >  >
>  >  > > Later today (touch wood) I'll prepare as small a test case as
>  >  >  > possible, then send
>  >  >  > a tar.gz of the .git directory. Okay?
>  >  >
>  >  >  That would be great, thanks.
>  >
>  >  Attached is tar.gz of working directory (.) - so unpack in a new directory.
>  >
>  >        git show HEAD@{"N seconds ago"}:data/node/.gitignore
>  >
>  >  works fine for values of N back to creationof file
>  >
>  >  But:
>  >
>  >        git show HEAD@{"N seconds ago"}:data/node/node.newds1
>  >
>  >  doesn't work for any values of N.
>  >
>  >  During my attempts to create this example, I managed created a
>  >  directory which where
>  >  the show command failed for both files, but when I changed the commit
>  >  message, the
>  >  show worked for .gitignore but not the node file. Hence my suspicion
>  >  of that the slashes
>  >  in the path are being interpreted as requesting a commit message match ...?
>  >
>  >  I hope you can track it down, I will install the latest version of git
>  >  later on today to
>  >  confirm the behaviour is still happening.
>
>  I just confirmed behaviour is still the same in 1.5.5
>
>  Geoff.
>
>
>
>
>
>  >
>  >  Thanks,
>  >  Geoff Russell
>  >
>  >  >
>  >  >  -Peff
>  >
>  >
>  > >
>  >
>  >
>  >
>  >  --
>  >  6 Fifth Ave,
>  >  St Morris, S.A. 5068
>  >  Australia
>  >  Ph: 041 8805 184 / 08 8332 5069
>  >
>
>
>
>  --
>  6 Fifth Ave,
>  St Morris, S.A. 5068
>  Australia
>  Ph: 041 8805 184 / 08 8332 5069
>



-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```

## Jeff King, 2008-05-01 13:53

Subject: Re: reflog/show question
Message-ID: <20080501135354.GB10135@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080501135354.GB10135%40sigill.intra.peff.net
In-Reply-To: <93c3eada0804301715r724e8b8xf0ed64ebe016beea@mail.gmail.com>

```
On Thu, May 01, 2008 at 09:45:40AM +0930, Geoff Russell wrote:

> N.B. This problem has vanished -- which means its probably something I
> messed up. I haven't worked out what yet, but I will.  Apologies for
> any time wasted.

Vanished randomly, or after you upgraded to the latest master? Did you
miss the "fix reflog approxidate parsing bug" patch I posted?

-Peff

```

## Geoff Russell, 2008-05-02 02:21

Subject: Re: reflog/show question
Message-ID: <93c3eada0805011921j4c1c7f8co864e7366e2ab8ed5@mail.gmail.com>
URL: https://gitlist.dev/e/93c3eada0805011921j4c1c7f8co864e7366e2ab8ed5%40mail.gmail.com
In-Reply-To: <20080501135354.GB10135@sigill.intra.peff.net>

```
On 5/1/08, Jeff King <peff@peff.net> wrote:
> On Thu, May 01, 2008 at 09:45:40AM +0930, Geoff Russell wrote:
>
>  > N.B. This problem has vanished -- which means its probably something I
>  > messed up. I haven't worked out what yet, but I will.  Apologies for
>  > any time wasted.
>
>
> Vanished randomly, or after you upgraded to the latest master? Did you
>  miss the "fix reflog approxidate parsing bug" patch I posted?

I did a "git pull origin" and used both 1.5.5.1 and my original
1.5.4-rc4 and couldn't
reproduce the problem. I have just looked at the patch and
it certainly sounds like it is attacking the problem that I was
seeing, but it shouldn't
have affected the 1.5.4-rc4 code.

Thanks
Geoff.

>
>  -Peff
>


-- 
6 Fifth Ave,
St Morris, S.A. 5068
Australia
Ph: 041 8805 184 / 08 8332 5069

```
