# [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'

3 messages from 2008-03-19 to 2008-03-19. Participants: Nicolas Pitre, Junio C Hamano.
Thread: https://gitlist.dev/t/12758

## Nicolas Pitre, 2008-03-19 21:06

Subject: [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'
Message-ID: <alpine.LFD.1.00.0803191703280.2947@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.1.00.0803191703280.2947%40xanadu.home

```
Give a direct hint to those who feel highly annoyed by the auto gc 
behavior.

Signed-off-by: Nicolas Pitre <nico@cam.org>
---
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt
index 229a7c9..eb3a1f8 100644
--- a/Documentation/git-gc.txt
+++ b/Documentation/git-gc.txt
@@ -19,8 +19,16 @@ created from prior invocations of linkgit:git-add[1].
 
 Users are encouraged to run this task on a regular basis within
 each repository to maintain good disk space utilization and good
-operating performance. Some git commands may automatically run
-`git-gc`; see the `--auto` flag below for details.
+operating performance.
+
+Some git commands may automatically run `git-gc`; see the `--auto` flag
+below for details. If you know what you're doing and all you want is to
+disable this behavior permanently without further considerations, just do:
+
+----------------------
+$ git config --global gc.auto 0
+$ git config --global gc.autopacklimit 0
+----------------------
 
 OPTIONS
 -------

```

## Junio C Hamano, 2008-03-19 21:59

Subject: Re: [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'
Message-ID: <7vzlsu1ikt.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vzlsu1ikt.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <alpine.LFD.1.00.0803191703280.2947@xanadu.home>

```
Nicolas Pitre <nico@cam.org> writes:

> +Some git commands may automatically run `git-gc`; see the `--auto` flag
> +below for details. If you know what you're doing and all you want is to
> +disable this behavior permanently without further considerations, just do:

I sense certain amount of distaste on the writer's part in the later part
of this sentence.  Did you have to say "without further considerations" to
hint "you are idiot not to consider downsides?"

Maybe we would want to warn what kind of downsides the user might be
dismissing without thinking, which can come back and haunt him later?

```

## Nicolas Pitre, 2008-03-19 23:29

Subject: Re: [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'
Message-ID: <alpine.LFD.1.00.0803191916590.2947@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.1.00.0803191916590.2947%40xanadu.home
In-Reply-To: <7vzlsu1ikt.fsf@gitster.siamese.dyndns.org>

```
On Wed, 19 Mar 2008, Junio C Hamano wrote:

> Nicolas Pitre <nico@cam.org> writes:
> 
> > +Some git commands may automatically run `git-gc`; see the `--auto` flag
> > +below for details. If you know what you're doing and all you want is to
> > +disable this behavior permanently without further considerations, just do:
> 
> I sense certain amount of distaste on the writer's part in the later part
> of this sentence.  Did you have to say "without further considerations" to
> hint "you are idiot not to consider downsides?"

That was more a "I don't care at all -- I just want to disable this 
thing right away" type of hint.  And the "if you know what you're doing" 
should normally exclude idiots. But you may as well just remove the 
"without further considerations" part.

> Maybe we would want to warn what kind of downsides the user might be
> dismissing without thinking, which can come back and haunt him later?

Maybe.  But my concern is more for users like Jens who are annoyed 
enough and just want this behavior to get out of their way.


Nicolas

```
