From e683e6d2be70d0a3f44fb1432358d6ddc52329c6 Mon Sep 17 00:00:00 2001 From: Arugula Bowl Date: Fri, 13 Jul 2018 20:35:27 +0000 Subject: [PATCH] Unify file extension list between check-commit-format and clang-format-all --- ci/check-commit-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/check-commit-format.sh b/ci/check-commit-format.sh index 982122a8..8b1a4247 100755 --- a/ci/check-commit-format.sh +++ b/ci/check-commit-format.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash REPO_ROOT=$(git rev-parse --show-toplevel) -RESULT=`python $REPO_ROOT/ci/git-clang-format.py --diff -f --commit HEAD~1` +RESULT=`python $REPO_ROOT/ci/git-clang-format.py --diff -f --commit HEAD~1 --extensions "h,hpp,cpp"` if [ "$RESULT" != "no modified files to format" ] && [ "$RESULT" != "clang-format did not modify any files" ]; then python $REPO_ROOT/ci/git-clang-format.py --diff -f --commit HEAD~1 echo