summaryrefslogtreecommitdiff
path: root/.hooks-config
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-31 10:56:35 -0500
committerBrad King <brad.king@kitware.com>2017-01-31 11:16:10 -0500
commit3288ab0c78057e2388b247d326dc80011488a0bb (patch)
treedbe9802f732a0a6e3f388881f54292088b251307 /.hooks-config
parent773df0e2d7596d84a711914f1cffb4fb5a107c17 (diff)
downloadcmake-3288ab0c78057e2388b247d326dc80011488a0bb.tar.gz
Convert local hook configuration to a Git config file format
The `git config` format is cleaner than a bash script and is also supported by our `hooks` branch to specify CMake-specific hooks.
Diffstat (limited to '.hooks-config')
-rw-r--r--.hooks-config10
1 files changed, 10 insertions, 0 deletions
diff --git a/.hooks-config b/.hooks-config
new file mode 100644
index 0000000000..064371c123
--- /dev/null
+++ b/.hooks-config
@@ -0,0 +1,10 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+# Loaded by .git/hooks/(pre-commit|commit-msg|prepare-commit-msg)
+# during git commit after local hooks have been installed.
+
+[hooks "chain"]
+ pre-commit = Utilities/Git/pre-commit
+ commit-msg = Utilities/Git/commit-msg
+ prepare-commit-msg = Utilities/Git/prepare-commit-msg