aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/tools/should-check-whitespace.sh
blob: 190511d95708bac01e049e3dd4d394576a615825 (plain)
1
2
3
4
5
#!/usr/bin/env bash

# determine if a file has whitespace checking enabled in .gitattributes

git check-attr whitespace -- "$1" | grep -q -v -e 'unset$' -e 'unspecified$'