Re: [PATCH] Introduce gc.autowarnonly config option
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Nov 7, 2011, 00:18 UTC
- Message-ID
- <CAG+J_DzNsAP1xAswkNxTAN6ze8ZV5pFqDMeQXKkjCoQgPUgEQQ@mail.gmail.com>
- In-Reply-To
- <20111105140529.3A6CE9004A@inscatolati.net>
On Sat, Nov 5, 2011 at 9:39 AM, Fernando Vezzosi <buccia@repnz.net> wrote:
Show 6 quoted lines
> When `git gc --auto` would detect need for garbage collection to run, it > would just run. With this patch, enabling gc.autowarnonly will instead > make it just emit a warning. > > Reviewed-by: Sverre Rabbelier <srabbelier@gmail.com> > Signed-off-by: Fernando Vezzosi <buccia@repnz.net>
This is much better than the solution I've been living with the last year, which was to put a pre-auto-gc in my templates directory of:
#!/bin/sh echo "time to run git gc" exit 1
So, thank you.
j.