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

Re: auto gc again

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Mar 19, 2008, 21:27 UTC
Message-ID
<47E18540.4020908@nrlssc.navy.mil>
In-Reply-To
<alpine.LFD.1.00.0803191629240.2947@xanadu.home>
Nicolas Pitre wrote:
Show 9 quoted lines
> On Tue, 18 Mar 2008, Jens Axboe wrote:
> 
>> But freshly pulled repo, git auto gc is enabled. And that is my main
>> annoyance, I just don't think that type of policy should be in there.
> 
> Just do this once:
> 
> 	git config --global gc.auto 0
> 	git config --global gc.autopacklimit 0

Is there any reason why gc.auto=0 couldn't be used to disable auto packing entirely?

Said differently, are there valid use cases where one might want automatic repacking based on the number of packs but _not_ based on the number of loose objects?

If the answer is "no", then "gc.auto=0 means completely disable auto-gc" seems intuitive and would have protected Jens in this case.

-brandon
Previous: Jens AxboeNext: Brandon Casey
Message 17 of 30 in “auto gc again”
  1. Jens AxboeMar 18, 2008
  2. Linus TorvaldsMar 18, 2008
  3. Jens AxboeMar 18, 2008
  4. Jens AxboeMar 18, 2008
  5. Linus TorvaldsMar 18, 2008
  6. Jens AxboeMar 18, 2008
  7. Johannes SchindelinMar 19, 2008
  8. Jens AxboeMar 19, 2008
  9. Johannes SchindelinMar 19, 2008
  10. Jens AxboeMar 20, 2008
  11. Nicolas PitreMar 19, 2008
  12. Jens AxboeMar 19, 2008
  13. Nicolas PitreMar 19, 2008
  14. Jens AxboeMar 20, 2008
  15. Junio C HamanoMar 20, 2008
  16. Jens AxboeMar 20, 2008
  17. Brandon CaseyMar 19, 2008
  18. builtin-gc.c: allow disabling all auto-gc'ing by assigning 0 to gc.autoBrandon Casey, Mar 19, 2008
  19. Teemu LikonenMar 20, 2008
  20. Nicolas PitreMar 19, 2008
  21. Jens AxboeMar 20, 2008
  22. Junio C HamanoMar 19, 2008
  23. Linus TorvaldsMar 19, 2008
  24. Junio C HamanoMar 19, 2008
  25. Nicolas PitreMar 19, 2008
  26. Junio C HamanoMar 19, 2008
  27. Nicolas PitreMar 20, 2008
  28. Junio C HamanoMar 20, 2008
  29. Nicolas PitreMar 20, 2008
  30. Junio C HamanoMar 20, 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.