Skip to content

Commit 0b85d92

Browse files
Miklos Vajnagitster
authored andcommitted
Documentation/hooks: add pre-auto-gc hook
Signed-off-by: Miklos Vajna <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bde3054 commit 0b85d92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/hooks.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,10 @@ probably enable this hook.
276276
Both standard output and standard error output are forwarded to
277277
`git-send-pack` on the other end, so you can simply `echo` messages
278278
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.

0 commit comments

Comments
 (0)