Unify file extension list between check-commit-format and clang-format-all
This commit is contained in:
parent
a8d2bb7639
commit
e683e6d2be
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue