diff --git a/Tools/lint.sh b/Tools/lint.sh index c1feb41fe3..6802e7abb5 100755 --- a/Tools/lint.sh +++ b/Tools/lint.sh @@ -5,7 +5,7 @@ fail=0 # Check for clang-format issues. -for f in $(git status --porcelain | awk '{print $2}'); do +for f in $(git diff --name-only --diff-filter=ACMRTUXB | awk '{print $2}'); do if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then continue fi