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

auto gc

From
JAJens Axboe <jens.axboe@oracle.com>
Date
Nov 15, 2007, 08:10 UTC
Message-ID
<20071115081025.GC638@kernel.dk>
Hi,

I've noticed that recent git versions, in a supposedly helpful fashion, run garbage collection automatically after a pull if it deems it necessary:

[...]
Resolving 556 deltas...
 100% (556/556) done
Updating 9418d5d..99fee6d
Fast forward
Packing your repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Generating pack...
[...]

This is extremely annoying behaviour! If I'm on battery or just in a bit of a hurry, I defeinitely don't want git second guessing me and deciding that it's time to run git gc.

I'd suggest just printing a hint that running git gc would increase performance, doing it automatically is definitely bad style (even more so when then yet again changed git refs layout even breaks old scripts, when git gc has run).

-- 
Jens Axboe
Next: Shawn O. Pearce
Message 1 of 3 in “auto gc”
  1. Jens AxboeNov 15, 2007
  2. Shawn O. PearceNov 15, 2007
  3. Jens AxboeNov 15, 2007

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.