git hook run: add an --ignore-missing flag
[git] / Documentation / git-hook.txt
1 git-hook(1)
2 ===========
3
4 NAME
5 ----
6 git-hook - run git hooks
7
8 SYNOPSIS
9 --------
10 [verse]
11 'git hook' run [--ignore-missing] <hook-name> [-- <hook-args>]
12
13 DESCRIPTION
14 -----------
15
16 This command is an interface to git hooks (see linkgit:githooks[5]).
17 Currently it only provides a convenience wrapper for running hooks for
18 use by git itself. In the future it might gain other functionality.
19
20 SUBCOMMANDS
21 -----------
22
23 run::
24
25         Run the `<hook-name>` hook. Any positional arguments to the
26         hook should be passed after an optional "--" (or
27         "--end-of-options"). See "OPTIONS" below for the arguments
28         this accepts.
29
30 OPTIONS
31 -------
32
33 --ignore-missing::
34         Ignore any missing hook by quietly returning zero. Used for
35         tools that want to do a blind one-shot run of a hook that may
36         or may not be present.
37
38 SEE ALSO
39 --------
40 linkgit:githooks[5]
41
42 GIT
43 ---
44 Part of the linkgit:git[1] suite