git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] --walk-reflogs: actually find the right commit by date.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 20, 2007, 21:36 UTC
Message-ID
<Pine.LNX.4.63.0701202225020.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vhcum80u4.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sat, 20 Jan 2007, Junio C Hamano wrote:
Show 13 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > Embarassing thinko.
> 
> Aha, progress ;-).  But it still seems to pick up entry that is
> less than specified number of hours if I do:
> 
> 	$ git log --walk-reflogs -4 master@{1.hour} | head -2
>         commit 33dd19c2a9c0b114436f53d86fc1c2c5e00c26bb
>         Reflog: master@{Sat, 20 Jan 2007 00:01:35 -0800} (Junio C Ham
> 
> It is Jan 20th 02:10 now and the master was not pointing at that
> commit 1 hour ago.

I tried to reproduce this effect, but so far no luck. I even let the function get_reflog_recno_by_time() output what it does, and it picks exactly the right commit. Do you have a time skew?

Ciao, Dscho

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 8 in “--walk-reflogs: actually find the right commit by date.”
  1. --walk-reflogs: actually find the right commit by date.Johannes Schindelin, Jan 20, 2007
  2. Johannes SchindelinJan 20, 2007
  3. Junio C HamanoJan 20, 2007
  4. Johannes SchindelinJan 20, 2007
  5. Junio C HamanoJan 21, 2007
  6. Johannes SchindelinJan 21, 2007
  7. Junio C HamanoJan 21, 2007
  8. Johannes SchindelinJan 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.