summaryrefslogtreecommitdiff
path: root/Documentation/git-hook.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/git-hook.txt')
-rw-r--r--Documentation/git-hook.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/git-hook.txt b/Documentation/git-hook.txt
index e39b1b5d06..77c3a8ad90 100644
--- a/Documentation/git-hook.txt
+++ b/Documentation/git-hook.txt
@@ -8,7 +8,7 @@ git-hook - Run git hooks
SYNOPSIS
--------
[verse]
-'git hook' run <hook-name> [-- <hook-args>]
+'git hook' run [--ignore-missing] <hook-name> [-- <hook-args>]
DESCRIPTION
-----------
@@ -28,6 +28,14 @@ Any positional arguments to the hook should be passed after a
mandatory `--` (or `--end-of-options`, see linkgit:gitcli[7]). See
linkgit:githooks[5] for arguments hooks might expect (if any).
+OPTIONS
+-------
+
+--ignore-missing::
+ Ignore any missing hook by quietly returning zero. Used for
+ tools that want to do a blind one-shot run of a hook that may
+ or may not be present.
+
SEE ALSO
--------
linkgit:githooks[5]