summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2011-10-21 13:39:39 -0400
committerBrad King <brad.king@kitware.com>2011-10-24 09:25:47 -0400
commit389c117192ee911af4e6afb42c53f70784cab71e (patch)
treed67289dfc5b8820f16bd8b3862d27c88d9be180c
parentf059ba93878b33edf6280aae917bdf4948b8f82b (diff)
downloadcmake-389c117192ee911af4e6afb42c53f70784cab71e.tar.gz
Remove .txx pre-commit check.
This is an ITK specific check. It is already implemented in the ITK Utilities/Hooks/pre-commit script executed in the hook chain. This should allow commiting when on the ITK release branch where .txx files still currently exist. Change-Id: I1115a2129beb89d6657d599aa6e72bb6515dfca3
-rwxr-xr-xpre-commit16
1 files changed, 0 insertions, 16 deletions
diff --git a/pre-commit b/pre-commit
index 4bc6c6b32f..f46cf5d788 100755
--- a/pre-commit
+++ b/pre-commit
@@ -300,22 +300,6 @@ done
test -z "$bad" || die "$bad"
#-----------------------------------------------------------------------------
-# Do not allow adding of files with .txx extension.
-diffs_added=$(git diff-index --diff-filter=A --cached $against -- |
- sed -n '/^:[^:]/ {s/^://;p;}')
-diffs_normal_added=$(echo "$diffs" | grep -v '^...... 160000')
-bad=$(
-test -n "$diffs_normal" && echo "$diffs_normal" |
-while read src_mode dst_mode src_obj dst_obj status file; do
- if echo "$file" | grep -q -E '\.txx$'; then
- echo "Attempted to add file $file."
- echo "Files with the .txx extension are not allowed -- use .hxx instead."
- fi
-done
-)
-test -z "$bad" || die "$bad"
-
-#-----------------------------------------------------------------------------
# Merge checks.
if test -n "$merge_head"; then
merge_diffs=$(git diff-index --cached $merge_head -- |