threads / rfc / 12758

RFC patchmake it easier for people who just want to get rid of 'git gc --auto'

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

## tl;dr

3 messages between Mar 19, 2008 and Mar 19, 2008. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Nicolas Pitre· Mar 19, 2008, 21:06 UTC · lore

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

Signed-off-by: Nicolas Pitre <nico@cam.org>
---
Show changes to Documentation/git-gc.txt +10 −2
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· Mar 19, 2008, 21:59 UTC · re: Nicolas Pitre · lore

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

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· Mar 19, 2008, 23:29 UTC · re: Junio C Hamano · lore

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

On Wed, 19 Mar 2008, Junio C Hamano wrote:
Show 9 quoted lines
> 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

← back to recent threads