From 773df0e2d7596d84a711914f1cffb4fb5a107c17 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 31 Jan 2017 10:51:46 -0500 Subject: 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. --- Utilities/SetupForDevelopment.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Utilities/SetupForDevelopment.sh') diff --git a/Utilities/SetupForDevelopment.sh b/Utilities/SetupForDevelopment.sh index 0a9df7e836..39152bcc42 100755 --- a/Utilities/SetupForDevelopment.sh +++ b/Utilities/SetupForDevelopment.sh @@ -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} -- cgit v1.2.1