aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-09-27 14:49:46 -0400
committerTeddy Wing2015-09-27 14:49:46 -0400
commit7a5b8b3e0df6c236e96deb6a1fa1a82b93425f61 (patch)
tree7f3b93f96942355ff7c41edb731b2abbfd7121a1
parent4941dce09c968e17d3355e035d85960646855f7f (diff)
downloadgit-hook-pre-commit-python-javascript-syntax-linter-master.tar.bz2
pre-commit: Remove unnecessary commented linesHEADmaster
Remove leftovers from the git sample pre-commit hook that we don't really need in this script.
-rw-r--r--pre-commit5
1 files changed, 0 insertions, 5 deletions
diff --git a/pre-commit b/pre-commit
index 16053a2..f1ac2ed 100644
--- a/pre-commit
+++ b/pre-commit
@@ -10,11 +10,6 @@ else
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
-# Redirect output to stderr.
-# exec 1>&2
-
-# test $(git diff --cached --name-only --diff-filter=A -z $against |
-# LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
files=$(git diff --cached --name-only --diff-filter=AMR -z $against)
python_files=$(echo $files | grep .*\.py)
javascript_files=$(echo $files | grep .*\.js)