aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorGravatar Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>2017-11-23 14:41:11 +0100
committerGravatar Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>2017-11-23 14:41:11 +0100
commit5fc8d81a1d33c491b004d8757a8ac30fb5fe214f (patch)
tree8df805c4f2dc16736303d994144d0937540db64c /dev
parent22ae762fa8940028f6a3d8a5fd4147d5ca3b53b9 (diff)
Linter: do not lint untracked files.
Diffstat (limited to 'dev')
-rwxr-xr-xdev/tools/should-check-whitespace.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev/tools/should-check-whitespace.sh b/dev/tools/should-check-whitespace.sh
index 190511d95..d85d65107 100755
--- a/dev/tools/should-check-whitespace.sh
+++ b/dev/tools/should-check-whitespace.sh
@@ -2,4 +2,5 @@
# determine if a file has whitespace checking enabled in .gitattributes
+git ls-files --error-unmatch "$1" >/dev/null 2>&1 &&
git check-attr whitespace -- "$1" | grep -q -v -e 'unset$' -e 'unspecified$'