Re: notify alternative to auto gc?
On Mon, Jun 28, 2010 at 11:58, Eric Raible <raible@gmail.com> wrote:
Show 13 quoted lines
> Chris Packham <judge.packham <at> gmail.com> writes:
>
>> So a hook like
>>
>> #! /bin/sh
>> echo "repository needs git gc"
>> exit 1
>>
>> Should cause the auto gc to be skipped.
>
> Except wouldn't you also need a mechanism
> to allow an explicit gc to actually proceed?
>
Only if you're explicitly calling "git gc --auto" instead of "git gc".
That hook should only run for "git gc --auto".