From d49bd50908b118ed16b30f324a355314988dae52 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 15 Oct 2016 18:39:32 +0900 Subject: [PATCH] Apply clang-format-diff only to lib, src, examples and tests --- pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-commit b/pre-commit index 1552c619..1dfe1f54 100755 --- a/pre-commit +++ b/pre-commit @@ -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"