Apply clang-format-diff only to lib, src, examples and tests
This commit is contained in:
parent
4130c68db1
commit
d49bd50908
|
@ -12,7 +12,7 @@ if [ -z "$CLANGFORMATDIFF" ]; then
|
|||
CLANGFORMATDIFF=clang-format-diff.py
|
||||
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
|
||||
echo "$errors"
|
||||
|
|
Loading…
Reference in New Issue