Эх сурвалжийг харах

proper ignore

Former-commit-id: e31f11f056e4c79542a3c0ae027df92051dff5b8
Alec Jacobson 9 жил өмнө
parent
commit
8ffe710b98
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      scripts/pre-commit.sh

+ 3 - 0
scripts/pre-commit.sh

@@ -9,8 +9,11 @@ NC='\033[0m'
 
 ## Throw error if any files contain "std::__1"
 
+
 # list of changed files
 CHANGED=$(git diff --cached --name-only --diff-filter=ACM)
+# Ignore this file!
+CHANGED=$(echo "$CHANGED" | grep -v "scripts/pre-commit.sh")
 # Changed files containing the namespace "std::__1"
 STD1=$(grep -Il "std::__1" $CHANGED)
 if  [ $? -eq 0 ]; then