cd ~/mesa/
files=$(git diff upstream/main --name-only | grep -E '\/panfrost\/|\/asahi\/' | grep -E '\.c$|\.cpp$|\.h$')

if [ -n "$files" ]; then
    clang-format-13 --Werror --dry-run $files
fi
