Skip to content

Commit

Permalink
Convert local hook configuration to a Git config file format
Browse files Browse the repository at this point in the history
The `git config` format is cleaner than a bash script and is also
supported by our `hooks` branch to specify CMake-specific hooks.
  • Loading branch information
bradking committed Jan 31, 2017
1 parent 773df0e commit 3288ab0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .hooks-config.bash → .hooks-config
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3288ab0

Please sign in to comment.