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