diff options
Diffstat (limited to 'scripts/check_code_format.sh')
| -rwxr-xr-x | scripts/check_code_format.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check_code_format.sh b/scripts/check_code_format.sh index 216da478..dbd7b799 100755 --- a/scripts/check_code_format.sh +++ b/scripts/check_code_format.sh @@ -24,14 +24,14 @@ NC='\033[0m' # No Color clang-format --version -FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan" | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$") +FILES_TO_CHECK=$(git diff --name-only main | grep -v -E "^include/vulkan" | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$") if [ -z "${FILES_TO_CHECK}" ]; then echo -e "${GREEN}No source code to check for formatting.${NC}" exit 0 fi -FORMAT_DIFF=$(git diff -U0 master -- ${FILES_TO_CHECK} | python ./scripts/clang-format-diff.py -p1 -style=file) +FORMAT_DIFF=$(git diff -U0 main -- ${FILES_TO_CHECK} | python ./scripts/clang-format-diff.py -p1 -style=file) if [ -z "${FORMAT_DIFF}" ]; then echo -e "${GREEN}All source code in PR properly formatted.${NC}" |
