Merge pull request #4059 from leoetlino/lint-diff-filter
Tools: Don't run lint on deleted files
This commit is contained in:
commit
1ccb4b4db0
|
@ -5,7 +5,7 @@
|
||||||
fail=0
|
fail=0
|
||||||
|
|
||||||
# Check for clang-format issues.
|
# 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
|
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue