Tools: Fix the lint script

It turns out that last fix was only partial, and it didn't fix the
issue completely as paths were fixed, but staged changes were not
in the list. This should fix it for real, this time. Sorry about that…

(git diff needs --cached to include staged changes, unlike git status.)
This commit is contained in:
Léo Lam 2016-08-11 21:11:17 +02:00
parent cef71afc27
commit 1fe31f6f19
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 diff --name-only --diff-filter=ACMRTUXB); do
for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
continue
fi