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

Re: [RFC,PATCH] Make git prune remove temporary packs that look like write failures

From
Nicolas Pitre <nico@cam.org>
Date
Feb 4, 2008, 14:52 UTC
Message-ID
<alpine.LFD.1.00.0802040945370.2732@xanadu.home>
In-Reply-To
<e1dab3980802040610s27a54a9due3b42db5f59c0cd5@mail.gmail.com>
On Mon, 4 Feb 2008, David Tweed wrote:
Show 7 quoted lines
> In principle this is a really trivial patch, but I'm being cautious because I
> don't like the fact that I don't know (and AFAICS can't reliably check) that
> the files being deleting are definitely dead. An alternative would
> be to make prune just print out that the suspicious packs are
> there and let the user delete them manually. (My itch is that once
> a write-failure pack gets created, nothing in git operations tells the
> user that a generally multimegabyte file hidden in .git occupying space.)

The lifelessness of a temporary pack is the same as for loose objects, hence the same rule should apply in both cases. Just asking the user to delete them manually isn't too nice either. A prune operation is already said to be dangerous and should be performed only when no other activities are occurring in the same repository. That should cover the case of dead temporary pack files just as well.

Nicolas
Previous: David TweedNext: Johannes Schindelin
Message 2 of 11 in “Make git prune remove temporary packs that look like write failures”
  1. Make git prune remove temporary packs that look like write failuresDavid Tweed, Feb 4, 2008
  2. Nicolas PitreFeb 4, 2008
  3. Johannes SchindelinFeb 4, 2008
  4. David TweedFeb 4, 2008
  5. Johannes SchindelinFeb 4, 2008
  6. David TweedFeb 4, 2008
  7. David TweedFeb 4, 2008
  8. Nicolas PitreFeb 4, 2008
  9. David TweedFeb 4, 2008
  10. Nicolas PitreFeb 4, 2008
  11. Johannes SchindelinFeb 4, 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.