From: Jacob Helwig Date: Mon, 28 Jun 2010 19:02:35 GMT Subject: Re: notify alternative to auto gc? Message-ID: In-Reply-To: On Mon, Jun 28, 2010 at 11:58, Eric Raible wrote: > Chris Packham 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".