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

Re: [PATCH] git-fsck: add --lost-found option

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 2, 2007, 23:11 UTC
Message-ID
<7vabuewgdb.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0707021751380.4071@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> With this option, dangling objects are not only reported, but also
> written to .git/lost-found/commit/ or .git/lost-found/other/.
>
> This obsoletes git-lost-found.

I haven't had chance to look at the code yet; this is only about the design.

I think adding --lost-found to fsck is a wonderful idea. I also think deprecating lost-found and removing it in the longer term is a good idea.

Please do not do that in a single patch. This patch is at least talking about three timeframes.

 1. git-fsck learns --lost-found
    The patch adds that to the code and the documentation.
    Then it is commented on, perhaps updated, and matures.
 2. git-lost-found is marked as "deprecated"
    This patch adds "deprecated" warning to the documentation.
 3. git-lost-found is removed.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 7 in “git-fsck: add --lost-found option”
  1. git-fsck: add --lost-found optionJohannes Schindelin, Jul 2, 2007
  2. Junio C HamanoJul 2, 2007
  3. Johannes SchindelinJul 2, 2007
  4. Junio C HamanoJul 3, 2007
  5. git-fsck: add --lost-found optionJohannes Schindelin, Jul 3, 2007
  6. fsck --lost-found writes to subdirectories in .git/lost-found/Jonas Fonseca, Jul 4, 2007
  7. Johannes SchindelinJul 4, 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.