diff options
| author | Juan Ramos <juan@lunarg.com> | 2023-01-16 16:10:30 -0700 |
|---|---|---|
| committer | Juan Ramos <114601453+juan-lunarg@users.noreply.github.com> | 2023-01-16 17:18:54 -0700 |
| commit | c757a2a8f8d1ef46e5f11e9308f1d5c7cd3bb8a3 (patch) | |
| tree | 781f0b5fa792cddc32acc0e6d47ecde2f2f0bf21 /scripts/check_code_format.sh | |
| parent | 80e16af0fd8f1f03374e4cc4eea4822520967e08 (diff) | |
| download | usermoji-c757a2a8f8d1ef46e5f11e9308f1d5c7cd3bb8a3.tar.xz | |
github: Use main instead of master
closes #729
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}" |
