git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* auto gc
@ 2007-11-15  8:10 Jens Axboe
  2007-11-15  8:20 ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2007-11-15  8:10 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auto gc
  2007-11-15  8:10 auto gc Jens Axboe
@ 2007-11-15  8:20 ` Shawn O. Pearce
  2007-11-15  8:28   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2007-11-15  8:20 UTC (permalink / raw)
  To: Jens Axboe; +Cc: git

Jens Axboe <jens.axboe@oracle.com> wrote:
...
> 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).

Set the following and it won't run automatically anymore for you:

	git config --global gc.auto 0
	git config --global gc.autopacklimit 0

More recently this message has been changed to:

  Packing your repository for optimum performance. You may also
  run "git gc" manually. See "git help gc" for more information.

The two options noted above are described in the manual for git-gc.

- 
Shawn.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auto gc
  2007-11-15  8:20 ` Shawn O. Pearce
@ 2007-11-15  8:28   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2007-11-15  8:28 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

On Thu, Nov 15 2007, Shawn O. Pearce wrote:
> Jens Axboe <jens.axboe@oracle.com> wrote:
> ...
> > 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).
> 
> Set the following and it won't run automatically anymore for you:
> 
> 	git config --global gc.auto 0
> 	git config --global gc.autopacklimit 0

OK

> More recently this message has been changed to:
> 
>   Packing your repository for optimum performance. You may also
>   run "git gc" manually. See "git help gc" for more information.

Great, that's a lot more appropriate in my opinion. I'll just update to
a later git.

Thanks!

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-15  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15  8:10 auto gc Jens Axboe
2007-11-15  8:20 ` Shawn O. Pearce
2007-11-15  8:28   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).