diff options
author | Brad King <brad.king@kitware.com> | 2017-01-31 15:56:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-31 16:16:10 (GMT) |
commit | 3288ab0c78057e2388b247d326dc80011488a0bb (patch) | |
tree | dbe9802f732a0a6e3f388881f54292088b251307 | |
parent | 773df0e2d7596d84a711914f1cffb4fb5a107c17 (diff) | |
download | CMake-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.
-rw-r--r-- | .hooks-config (renamed from .hooks-config.bash) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.hooks-config.bash b/.hooks-config index ea9342a..064371c 100644 --- a/.hooks-config.bash +++ b/.hooks-config @@ -4,6 +4,7 @@ # 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" -hooks_chain_commit_msg="Utilities/Git/commit-msg" -hooks_chain_prepare_commit_msg="Utilities/Git/prepare-commit-msg" +[hooks "chain"] + pre-commit = Utilities/Git/pre-commit + commit-msg = Utilities/Git/commit-msg + prepare-commit-msg = Utilities/Git/prepare-commit-msg |