# Re: [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook

1 messages from 2008-04-01 to 2008-04-01. Participants: Junio C Hamano.
Thread: https://gitlist.dev/t/12944

## Junio C Hamano, 2008-04-01 05:02

Subject: Re: [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook
Message-ID: <7v8wzyjhg2.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v8wzyjhg2.fsf%40gitster.siamese.dyndns.org

```
Miklos Vajna <vmiklos@frugalware.org> writes:

> +The default 'pre-auto-gc' hook, when enabled, defers auto repacking when
> +you are on battery.

I'd prefer not to have the Linux specific one in templates/hooks--*; it
would be a good addition to contrib/hooks/ though, if you use on_ac_power
as suggested.

In any case, we ship all hooks in templates _disabled_, and they should be
called "example hook", not "default hook".

```
