Tools: Don't run lint on deleted files

Generates a harmless "No such file or directory" otherwise when a file
is removed in a commit.
This commit is contained in:
Léo Lam 2016-07-26 00:51:10 +02:00
parent c6924b4d03
commit 671c0bc06f
1 changed files with 1 additions and 1 deletions

View File

@ -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