|
1 | | -hook.<name>.command:: |
2 | | - The command to execute for `hook.<name>`. `<name>` is a unique |
3 | | - "friendly" name that identifies this hook. (The hook events that |
4 | | - trigger the command are configured with `hook.<name>.event`.) The |
5 | | - value can be an executable path or a shell oneliner. If more than |
6 | | - one value is specified for the same `<name>`, only the last value |
7 | | - parsed is used. See linkgit:git-hook[1]. |
| 1 | +hook.<friendly-name>.command:: |
| 2 | + The command to execute for `hook.<friendly-name>`. `<friendly-name>` |
| 3 | + is a unique name that identifies this hook. The hook events that |
| 4 | + trigger the command are configured with `hook.<friendly-name>.event`. |
| 5 | + The value can be an executable path or a shell oneliner. If more than |
| 6 | + one value is specified for the same `<friendly-name>`, only the last |
| 7 | + value parsed is used. See linkgit:git-hook[1]. |
8 | 8 |
|
9 | | -hook.<name>.event:: |
10 | | - The hook events that trigger `hook.<name>`. The value is the name |
11 | | - of a hook event, like "pre-commit" or "update". (See |
| 9 | +hook.<friendly-name>.event:: |
| 10 | + The hook events that trigger `hook.<friendly-name>`. The value is the |
| 11 | + name of a hook event, like "pre-commit" or "update". (See |
12 | 12 | linkgit:githooks[5] for a complete list of hook events.) On the |
13 | | - specified event, the associated `hook.<name>.command` is executed. |
14 | | - This is a multi-valued key. To run `hook.<name>` on multiple |
| 13 | + specified event, the associated `hook.<friendly-name>.command` is executed. |
| 14 | + This is a multi-valued key. To run `hook.<friendly-name>` on multiple |
15 | 15 | events, specify the key more than once. An empty value resets |
16 | 16 | the list of events, clearing any previously defined events for |
17 | | - `hook.<name>`. See linkgit:git-hook[1]. |
| 17 | + `hook.<friendly-name>`. See linkgit:git-hook[1]. |
18 | 18 |
|
19 | | -hook.<name>.enabled:: |
20 | | - Whether the hook `hook.<name>` is enabled. Defaults to `true`. |
| 19 | +hook.<friendly-name>.enabled:: |
| 20 | + Whether the hook `hook.<friendly-name>` is enabled. Defaults to `true`. |
21 | 21 | Set to `false` to disable the hook without removing its |
22 | 22 | configuration. This is particularly useful when a hook is defined |
23 | 23 | in a system or global config file and needs to be disabled for a |
|
0 commit comments