Apply clang-format-diff only to lib, src, examples and tests

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-15 18:39:32 +09:00
parent 4130c68db1
commit d49bd50908
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if [ -z "$CLANGFORMATDIFF" ]; then
CLANGFORMATDIFF=clang-format-diff.py CLANGFORMATDIFF=clang-format-diff.py
fi fi
errors=`git diff-index --cached --diff-filter=ACMR -p HEAD -- | $CLANGFORMATDIFF -p1` errors=`git diff-index --cached --diff-filter=ACMR -p HEAD lib src examples tests | $CLANGFORMATDIFF -p1`
if [ -n "$errors" ]; then if [ -n "$errors" ]; then
echo "$errors" echo "$errors"