{"thread":{"id":"12758","subject":"[PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'","startedAt":"2008-03-19T21:06:11Z","lastAt":"2008-03-19T23:29:58Z","messageCount":3,"participants":["Nicolas Pitre","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"72401","messageId":"alpine.LFD.1.00.0803191703280.2947@xanadu.home","threadId":"12758","inReplyTo":null,"subject":"[PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2008-03-19T21:06:11Z","receivedAt":"2008-03-19T21:06:11Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"Give a direct hint to those who feel highly annoyed by the auto gc \nbehavior.\n\nSigned-off-by: Nicolas Pitre <nico@cam.org>\n---\ndiff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt\nindex 229a7c9..eb3a1f8 100644\n--- a/Documentation/git-gc.txt\n+++ b/Documentation/git-gc.txt\n@@ -19,8 +19,16 @@ created from prior invocations of linkgit:git-add[1].\n \n Users are encouraged to run this task on a regular basis within\n each repository to maintain good disk space utilization and good\n-operating performance. Some git commands may automatically run\n-`git-gc`; see the `--auto` flag below for details.\n+operating performance.\n+\n+Some git commands may automatically run `git-gc`; see the `--auto` flag\n+below for details. If you know what you're doing and all you want is to\n+disable this behavior permanently without further considerations, just do:\n+\n+----------------------\n+$ git config --global gc.auto 0\n+$ git config --global gc.autopacklimit 0\n+----------------------\n \n OPTIONS\n -------\n"},{"id":"72422","messageId":"7vzlsu1ikt.fsf@gitster.siamese.dyndns.org","threadId":"12758","inReplyTo":"alpine.LFD.1.00.0803191703280.2947@xanadu.home","subject":"Re: [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-03-19T21:59:14Z","receivedAt":"2008-03-19T21:59:14Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nicolas Pitre <nico@cam.org> writes:\n\n> +Some git commands may automatically run `git-gc`; see the `--auto` flag\n> +below for details. If you know what you're doing and all you want is to\n> +disable this behavior permanently without further considerations, just do:\n\nI sense certain amount of distaste on the writer's part in the later part\nof this sentence.  Did you have to say \"without further considerations\" to\nhint \"you are idiot not to consider downsides?\"\n\nMaybe we would want to warn what kind of downsides the user might be\ndismissing without thinking, which can come back and haunt him later?\n"},{"id":"72444","messageId":"alpine.LFD.1.00.0803191916590.2947@xanadu.home","threadId":"12758","inReplyTo":"7vzlsu1ikt.fsf@gitster.siamese.dyndns.org","subject":"Re: [PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2008-03-19T23:29:58Z","receivedAt":"2008-03-19T23:29:58Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Wed, 19 Mar 2008, Junio C Hamano wrote:\n\n> Nicolas Pitre <nico@cam.org> writes:\n> \n> > +Some git commands may automatically run `git-gc`; see the `--auto` flag\n> > +below for details. If you know what you're doing and all you want is to\n> > +disable this behavior permanently without further considerations, just do:\n> \n> I sense certain amount of distaste on the writer's part in the later part\n> of this sentence.  Did you have to say \"without further considerations\" to\n> hint \"you are idiot not to consider downsides?\"\n\nThat was more a \"I don't care at all -- I just want to disable this \nthing right away\" type of hint.  And the \"if you know what you're doing\" \nshould normally exclude idiots. But you may as well just remove the \n\"without further considerations\" part.\n\n> Maybe we would want to warn what kind of downsides the user might be\n> dismissing without thinking, which can come back and haunt him later?\n\nMaybe.  But my concern is more for users like Jens who are annoyed \nenough and just want this behavior to get out of their way.\n\n\nNicolas\n"}]}