Move CI-only check-format script to .github/

This commit is contained in:
Rangi
2026-07-10 23:12:49 -04:00
committed by Rangi
parent c02b234bb1
commit a6f5e3efd1
2 changed files with 2 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
# SPDX-License-Identifier: MIT
clang-format --version
find . -type f -iname '*.[ch]pp' -exec clang-format -i {} +
if ! git diff-index --quiet HEAD --; then
echo 'Unformatted files:'
git diff-index --name-only HEAD --
echo
git diff HEAD --
exit 1
fi