aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-hook.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/git-hook.adoc')
-rw-r--r--Documentation/git-hook.adoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-hook.adoc b/Documentation/git-hook.adoc
index f6cc72d2ca..eb0ffcb8a9 100644
--- a/Documentation/git-hook.adoc
+++ b/Documentation/git-hook.adoc
@@ -9,6 +9,7 @@ SYNOPSIS
--------
[verse]
'git hook' run [--ignore-missing] [--to-stdin=<path>] <hook-name> [-- <hook-args>]
+'git hook' list <hook-name>
DESCRIPTION
-----------
@@ -28,6 +29,10 @@ 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).
+list::
+ Print a list of hooks which will be run on `<hook-name>` event. If no
+ hooks are configured for that event, print a warning and return 1.
+
OPTIONS
-------