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

Re: git gc/prune runs again and again

From
Andreas Krey <a.krey@gmx.de>
Date
Nov 3, 2015, 15:21 UTC
Message-ID
<20151103152109.GA15036@inner.h.apk.li>
In-Reply-To
<CACsJy8DMyjaZ_jKz4B93e6gSgV7ensORqxD-WYOYL9=9SV5tLw@mail.gmail.com>

On Tue, 03 Nov 2015 16:01:24 +0000, Duy Nguyen wrote: ....

Show 5 quoted lines
> > I have a bit of an annoying behaviour in git gc;
> > there is a repo I regularly do a fetch in, and
> > this kicks off a gc/prune every time. I remember
> > there being a heuristic with being that many files
> > in .git/objects/17 as the gc trigger.
(It might be a good idea to use a random slot here.)
...
> > What can I do there? (This git is a bit old, 2.2.2)
> 
> Run "git prune". 2.2.2 hides this suggestion to run git-prune in this
> case. The next git version will show it back.

Actually, there is a 'git prune --expire 2.weeks.ago --no-progress' running under the 'git gc --auto --quiet', and I don't want to drop the expiry time lightly.

Andreas
-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Previous: Duy Nguyen
Message 3 of 3 in “git gc/prune runs again and again”
  1. Andreas KreyNov 3, 2015
  2. Duy NguyenNov 3, 2015
  3. Andreas KreyNov 3, 2015

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.