summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-04-19 21:12:24 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-04-19 21:12:24 -0700
commita2fa254bd24c6f21c66869fc74b56b0aa1719851 (patch)
tree8de45d648286825d2fca04fcc0c2c9ac343b112a /Documentation
parentMerge branch 'py/submodule' (diff)
parentcontrib/hooks: add an example pre-auto-gc hook (diff)
downloadtgif-a2fa254bd24c6f21c66869fc74b56b0aa1719851.tar.xz
Merge branch 'mv/defer-gc'
* mv/defer-gc: contrib/hooks: add an example pre-auto-gc hook Documentation/hooks: add pre-auto-gc hook git-gc --auto: add pre-auto-gc hook
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/hooks.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt
index 76b8d77460..44fbe58f20 100644
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
@@ -276,3 +276,10 @@ probably enable this hook.
Both standard output and standard error output are forwarded to
`git-send-pack` on the other end, so you can simply `echo` messages
for the user.
+
+pre-auto-gc
+-----------
+
+This hook is invoked by `git-gc --auto`. It takes no parameter, and
+exiting with non-zero status from this script causes the `git-gc --auto`
+to abort.