summaryrefslogtreecommitdiffstats
path: root/.hooks-config
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-31 15:56:35 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-31 16:16:10 (GMT)
commit3288ab0c78057e2388b247d326dc80011488a0bb (patch)
treedbe9802f732a0a6e3f388881f54292088b251307 /.hooks-config
parent773df0e2d7596d84a711914f1cffb4fb5a107c17 (diff)
downloadCMake-3288ab0c78057e2388b247d326dc80011488a0bb.zip
CMake-3288ab0c78057e2388b247d326dc80011488a0bb.tar.gz
CMake-3288ab0c78057e2388b247d326dc80011488a0bb.tar.bz2
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 0000000..064371c
--- /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