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

Re: git pull & git gc

From
Jeff King <peff@peff.net>
Date
Mar 18, 2015, 21:07 UTC
Message-ID
<20150318210706.GB3376@peff.net>
In-Reply-To
<5509904A.2000606@aegee.org>
On Wed, Mar 18, 2015 at 03:48:42PM +0100, Дилян Палаузов wrote:
Show 6 quoted lines
> #ls .git/objects/17/*  | wc -l
> 30
> 
> 30 * 256 = 7 680 > 6 700
> 
> And now?  Do I have to run git gc --aggressive ?

No, aggressive just controls the time we spend on repacking. If the guess is correct that the objects are kept because they are unreachable but "recent", then shortening the prune expiration time would get rid of them. E.g., "git gc --prune=1.hour.ago".

That does not solve the underlying problem discussed elsewhere in the thread, but it would make this particular instance of it go away. :)

-Peff
Previous: Дилян Палаузов
Message 21 of 21 in “git pull & git gc”
  1. Дилян ПалаузовMar 18, 2015
  2. Duy NguyenMar 18, 2015
  3. Дилян ПалаузовMar 18, 2015
  4. Duy NguyenMar 18, 2015
  5. Duy NguyenMar 18, 2015
  6. John KeepingMar 18, 2015
  7. Jeff KingMar 18, 2015
  8. Duy NguyenMar 19, 2015
  9. Jeff KingMar 19, 2015
  10. Mike HommeyMar 19, 2015
  11. Jeff KingMar 19, 2015
  12. Mike HommeyMar 19, 2015
  13. Junio C HamanoMar 19, 2015
  14. Jeff KingMar 19, 2015
  15. Duy NguyenMar 19, 2015
  16. Jeff KingMar 19, 2015
  17. Duy NguyenMar 19, 2015
  18. Jeff KingMar 19, 2015
  19. Duy NguyenMar 19, 2015
  20. Дилян ПалаузовMar 18, 2015
  21. Jeff KingMar 18, 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.