diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/config/hook.adoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/config/hook.adoc b/Documentation/config/hook.adoc index 9faafe3016..0cda4745a6 100644 --- a/Documentation/config/hook.adoc +++ b/Documentation/config/hook.adoc @@ -13,3 +13,10 @@ hook.<name>.event:: specified event, the associated `hook.<name>.command` is executed. This is a multi-valued key. To run `hook.<name>` on multiple events, specify the key more than once. See linkgit:git-hook[1]. + +hook.<name>.enabled:: + Whether the hook `hook.<name>` is enabled. Defaults to `true`. + Set to `false` to disable the hook without removing its + configuration. This is particularly useful when a hook is defined + in a system or global config file and needs to be disabled for a + specific repository. See linkgit:git-hook[1]. |
