aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/tools/should-check-whitespace.sh
blob: 8159506b41e0e7732c214b45b084e4a5efca600b (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 'unspecified$'