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

Re: How to (re-)create .git/logs/refs

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 13, 2008, 11:46 UTC
Message-ID
<alpine.DEB.1.00.0805131244300.30431@racer>
In-Reply-To
<200805130842.06112.hs4233@mail.mn-solutions.de>
Hi,
On Tue, 13 May 2008, Holger Schurig wrote:
Show 9 quoted lines
> > > a) is there a way to re-create .git/logs/refs ?
> >
> > No.
> >
> > The reflog records how _you_ modified your various branches
> > locally.
> 
> Okay, then I presume it's a shortcoming that the @{date} syntax 
> uses .git/logs/ref.

Are you sure you understand what @{date} does? It shows you the state _this_ repository was in at that date.

There is _no way_ to get this information from somewhere else than the reflogs.

It is a common misconception that you can reference anything by date in a distributed setup. (Before you ask, I will just mention "clock skew" and "parallel branches" to give you an idea why this is a misconception.)

Ciao, Dscho

Previous: Andreas EricssonNext: Holger Schurig
Message 7 of 10 in “How to (re-)create .git/logs/refs”
  1. Holger SchurigMay 8, 2008
  2. Holger SchurigMay 8, 2008
  3. Nicolas PitreMay 8, 2008
  4. Holger SchurigMay 13, 2008
  5. Holger SchurigMay 13, 2008
  6. Andreas EricssonMay 13, 2008
  7. Johannes SchindelinMay 13, 2008
  8. Holger SchurigMay 13, 2008
  9. Jakub NarebskiMay 13, 2008
  10. Holger SchurigMay 13, 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.