Unify file extension list between check-commit-format and clang-format-all

This commit is contained in:
Arugula Bowl 2018-07-13 20:35:27 +00:00 committed by Lee Bousfield
commit e683e6d2be

View file

@ -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