Merge pull request #4059 from leoetlino/lint-diff-filter

Tools: Don't run lint on deleted files
This commit is contained in:
Pierre Bourdon 2016-07-26 01:31:05 +02:00 committed by GitHub
commit 1ccb4b4db0
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