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

Re: finding deleted file names

From
Jeff King <peff@peff.net>
Date
Jul 3, 2008, 19:47 UTC
Message-ID
<20080703194728.GA18443@sigill.intra.peff.net>
In-Reply-To
<7vzloyzrew.fsf@gitster.siamese.dyndns.org>
On Thu, Jul 03, 2008 at 12:41:43PM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> Once reflog entries begin expiring, we won't have the null_sha1 on the
> previous side of them, and after that we will keep returning the
> oldest-known one, so nobody should be expecting to find out when a ref was
> first created in this repository by checking with what timestamp that
> syntax breaks in the existing interface.

Right, that was my thought: though perhaps not technically as precise, it is much more DWIM.

My other concern, which I failed to voice in the original mail was: should we do this magic for other reflog entries besides the first one? It is possible to end up with a null sha1 in any other entry? Branch creation shouldn't do it, because we will have deleted any previous reflog when killing off the branch before, so we always end up putting in the "oldest" reflog entry. Cloning shouldn't do it for obvious reasons.

> Sorry for not being Shawn ;-)
Heh.
-Peff
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 14 of 16 in “finding deleted file names”
  1. Geoff RussellJul 3, 2008
  2. Mikael MagnussonJul 3, 2008
  3. Geoff RussellJul 3, 2008
  4. Mikael MagnussonJul 3, 2008
  5. Jeff KingJul 3, 2008
  6. Geoff RussellJul 4, 2008
  7. Junio C HamanoJul 4, 2008
  8. Geoff RussellJul 6, 2008
  9. Junio C HamanoJul 6, 2008
  10. Geoff RussellJul 7, 2008
  11. Jakub NarebskiJul 3, 2008
  12. Jeff KingJul 3, 2008
  13. Junio C HamanoJul 3, 2008
  14. Jeff KingJul 3, 2008
  15. Shawn O. PearceJul 3, 2008
  16. Johannes SchindelinJul 3, 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.