{"thread":{"id":"10880","subject":"auto gc","startedAt":"2007-11-15T08:10:27Z","lastAt":"2007-11-15T08:28:09Z","messageCount":3,"participants":["Jens Axboe","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59944","messageId":"20071115081025.GC638@kernel.dk","threadId":"10880","inReplyTo":null,"subject":"auto gc","fromName":"Jens Axboe","fromEmail":"jens.axboe@oracle.com","sentAt":"2007-11-15T08:10:27Z","receivedAt":"2007-11-15T08:10:27Z","isPatch":false,"sender":{"key":"axboe@kernel.dk","avatar":null},"body":"Hi,\n\nI've noticed that recent git versions, in a supposedly helpful fashion,\nrun garbage collection automatically after a pull if it deems it\nnecessary:\n\n[...]\nResolving 556 deltas...\n 100% (556/556) done\nUpdating 9418d5d..99fee6d\nFast forward\nPacking your repository for optimum performance. You may also\nrun \"git gc\" manually. See \"git help gc\" for more information.\nGenerating pack...\n[...]\n\nThis is extremely annoying behaviour! If I'm on battery or just in a bit\nof a hurry, I defeinitely don't want git second guessing me and deciding\nthat it's time to run git gc.\n\nI'd suggest just printing a hint that running git gc would increase\nperformance, doing it automatically is definitely bad style (even more\nso when then yet again changed git refs layout even breaks old scripts,\nwhen git gc has run).\n\n-- \nJens Axboe\n"},{"id":"59948","messageId":"20071115082004.GL14735@spearce.org","threadId":"10880","inReplyTo":"20071115081025.GC638@kernel.dk","subject":"Re: auto gc","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-11-15T08:20:04Z","receivedAt":"2007-11-15T08:20:04Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jens Axboe <jens.axboe@oracle.com> wrote:\n...\n> Packing your repository for optimum performance. You may also\n> run \"git gc\" manually. See \"git help gc\" for more information.\n> Generating pack...\n> [...]\n> \n> This is extremely annoying behaviour! If I'm on battery or just in a bit\n> of a hurry, I defeinitely don't want git second guessing me and deciding\n> that it's time to run git gc.\n> \n> I'd suggest just printing a hint that running git gc would increase\n> performance, doing it automatically is definitely bad style (even more\n> so when then yet again changed git refs layout even breaks old scripts,\n> when git gc has run).\n\nSet the following and it won't run automatically anymore for you:\n\n\tgit config --global gc.auto 0\n\tgit config --global gc.autopacklimit 0\n\nMore recently this message has been changed to:\n\n  Packing your repository for optimum performance. You may also\n  run \"git gc\" manually. See \"git help gc\" for more information.\n\nThe two options noted above are described in the manual for git-gc.\n\n- \nShawn.\n"},{"id":"59950","messageId":"20071115082808.GD638@kernel.dk","threadId":"10880","inReplyTo":"20071115082004.GL14735@spearce.org","subject":"Re: auto gc","fromName":"Jens Axboe","fromEmail":"jens.axboe@oracle.com","sentAt":"2007-11-15T08:28:09Z","receivedAt":"2007-11-15T08:28:09Z","isPatch":false,"sender":{"key":"axboe@kernel.dk","avatar":null},"body":"On Thu, Nov 15 2007, Shawn O. Pearce wrote:\n> Jens Axboe <jens.axboe@oracle.com> wrote:\n> ...\n> > Packing your repository for optimum performance. You may also\n> > run \"git gc\" manually. See \"git help gc\" for more information.\n> > Generating pack...\n> > [...]\n> > \n> > This is extremely annoying behaviour! If I'm on battery or just in a bit\n> > of a hurry, I defeinitely don't want git second guessing me and deciding\n> > that it's time to run git gc.\n> > \n> > I'd suggest just printing a hint that running git gc would increase\n> > performance, doing it automatically is definitely bad style (even more\n> > so when then yet again changed git refs layout even breaks old scripts,\n> > when git gc has run).\n> \n> Set the following and it won't run automatically anymore for you:\n> \n> \tgit config --global gc.auto 0\n> \tgit config --global gc.autopacklimit 0\n\nOK\n\n> More recently this message has been changed to:\n> \n>   Packing your repository for optimum performance. You may also\n>   run \"git gc\" manually. See \"git help gc\" for more information.\n\nGreat, that's a lot more appropriate in my opinion. I'll just update to\na later git.\n\nThanks!\n\n-- \nJens Axboe\n"}]}