aboutsummaryrefslogtreecommitdiff
path: root/scripts/check_code_format.sh
diff options
context:
space:
mode:
authorJuan Ramos <juan@lunarg.com>2023-01-16 16:10:30 -0700
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-01-16 17:18:54 -0700
commitc757a2a8f8d1ef46e5f11e9308f1d5c7cd3bb8a3 (patch)
tree781f0b5fa792cddc32acc0e6d47ecde2f2f0bf21 /scripts/check_code_format.sh
parent80e16af0fd8f1f03374e4cc4eea4822520967e08 (diff)
downloadusermoji-c757a2a8f8d1ef46e5f11e9308f1d5c7cd3bb8a3.tar.xz
github: Use main instead of master
closes #729
Diffstat (limited to 'scripts/check_code_format.sh')
-rwxr-xr-xscripts/check_code_format.sh4
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}"