@matheusbsbs / matheus-bagliano / commits / 0b85d92661
Fork 0

Documentation/hooks: add pre-auto-gc hook

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Apr 2, 2008 at 21:34 UTC 0b85d92661e215915fcca8fcff8953e4762733e2
1 file changed +7
Documentation/hooks.txt
+7
@@ -276,3 +276,10 @@ probably enable this hook.
276 Both standard output and standard error output are forwarded to
277 `git-send-pack` on the other end, so you can simply `echo` messages
278 for the user.
279 +
280 +pre-auto-gc
281 +-----------
282 +
283 +This hook is invoked by `git-gc --auto`. It takes no parameter, and
284 +exiting with non-zero status from this script causes the `git-gc --auto`
285 +to abort.