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

diff/Checking out by date specification

From
TCToby Corkindale <toby.corkindale@rea-group.com>
Date
Jun 30, 2008, 02:24 UTC
Message-ID
<486843C3.30402@rea-group.com>

Hi, `man git-rev-parse` seems to indicate that one can look at the state of the repository by date (absolute or relative), and use this for diff or checkout, etc. It includes examples such as "{yesterday}" and "{1979-02-26 18:30:00}".

I'm struggling to get this to work in real life with cloned repositories, as I receive an error that the log only goes back to whenever I cloned the repository.

Is there a way to make this operate upon the remote log?
Eg:

$ git clone git://git.kernel.org/pub/scm/git/git.git $ cd git $ git diff "@{yesterday}" warning: Log for '' only goes back to Mon, 30 Jun 2008 12:22:52 +1000. fatal: bad object @{yesterday}

Cheers, Toby

-- 
Toby Corkindale
Software developer
w: www.rea-group.com
REA Group refers to realestate.com.au Ltd (ASX:REA)

Warning - This e-mail transmission may contain confidential information.
If you have received this transmission in error, please notify us
immediately on (61 3) 9897 1121 or by reply email to the sender. You
must destroy the e-mail immediately and not use, copy, distribute or
disclose the contents.
Next: Jeff King
Message 1 of 6 in “diff/Checking out by date specification”
  1. Toby CorkindaleJun 30, 2008
  2. Jeff KingJun 30, 2008
  3. Toby CorkindaleJun 30, 2008
  4. Daniel BarkalowJun 30, 2008
  5. Jeff KingJun 30, 2008
  6. Jeff KingJun 30, 2008

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.