mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
Add pre-commit hook to check whether SetupForDevelopment must re-run
Add a version number to the `SetupForDevelopment.sh` script and use a pre-commit hook to check when it changes.
This commit is contained in:
@@ -11,3 +11,7 @@ Utilities/GitSetup/tips
|
||||
# Rebase master by default
|
||||
git config rebase.stat true
|
||||
git config branch.master.rebase true
|
||||
|
||||
# Record the version of this setup so Git/pre-commit can check it.
|
||||
SetupForDevelopment_VERSION=1
|
||||
git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}
|
||||
|
||||
Reference in New Issue
Block a user