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

How to cut extra liftime of expired loose objects

From
Johannes Sixt <j6t@kdbg.org>
Date
May 30, 2016, 16:43 UTC
Message-ID
<574C6D9B.1080200@kdbg.org>

I think there is logic somewhere in git gc or its minions that gives expired objects that have been packed a two weeks extra life time as loose objects.

That is, reachable loose objects are moved to a pack, but those objects that were packed, but become unreachable due to expired reflogs, are evicted from the pack and live for another two weeks or so as loose objects.

As a consequence of this, I always have a few thousand loose objects in my busy repositories, no matter how often I collect garbage. Is there a knob that removes the extra lease of life of objects without reducing the usual expiration times of reflogs etc?

-- Hannes
Next: Jeff King
Message 1 of 3 in “How to cut extra liftime of expired loose objects”
  1. Johannes SixtMay 30, 2016
  2. Jeff KingMay 30, 2016
  3. Junio C HamanoMay 30, 2016

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.