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

Re: "git gc" doesn't seem to remove loose objects any more

From
Theodore Tso <tytso@mit.edu>
Date
Dec 15, 2008, 19:38 UTC
Message-ID
<20081215193837.GB11502@mit.edu>
In-Reply-To
<m3vdtlcqp6.fsf@localhost.localdomain>
On Mon, Dec 15, 2008 at 09:07:39AM -0800, Jakub Narebski wrote:
> 
> There was an idea to have "git gc --prune" run "git prune"
> unconditionally, i.e. without grace period for dangling loose objects.
> 

That doesn't help that much, since (temporarily) you still need all of the disk space for the exploded, unpacked objects. As Brandon Casey pointed out, the key is "git repack -a -d -l" vs "git repack -A -d -l". If there is going to be a git-gc option, it would need to change the options sent to git-repack. Or, I suppose the answer is to tell people who run into this problem use a plumbing command, manually. The question is how common is the use case of needing to gc a repository like linux-next, I suppose.

							- Ted
Previous: Jakub NarebskiNext: Brandon Casey
Message 10 of 12 in “"git gc" doesn't seem to remove loose objects any more”
  1. Bruce StephensDec 15, 2008
  2. Mikael MagnussonDec 15, 2008
  3. Bruce StephensDec 15, 2008
  4. Björn SteinbrinkDec 15, 2008
  5. Theodore TsoDec 15, 2008
  6. Mark BrownDec 15, 2008
  7. Johan HerlandDec 15, 2008
  8. Mikael MagnussonDec 15, 2008
  9. Jakub NarebskiDec 15, 2008
  10. Theodore TsoDec 15, 2008
  11. Brandon CaseyDec 15, 2008
  12. objects to be pruned immediately don't have to be loosenedNicolas Pitre, Dec 15, 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.