diff options
Diffstat (limited to 'dev/tools')
-rwxr-xr-x | dev/tools/should-check-whitespace.sh | 1 |
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$' |