Skip .git directory in format and entr scripts

This commit is contained in:
Camden Dixie O'Brien 2024-10-24 13:42:54 +01:00
parent d1b350f6ec
commit 3bc640b656
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
cd "$(git rev-parse --show-toplevel)" cd "$(git rev-parse --show-toplevel)"
find . -not \( -path build -prune \) \ find . -not \( -path './build' -prune \) -not \( -path './.git' -prune \) \
| entr -s 'clear && sh scripts/build.sh && sh scripts/test.sh' | entr -s 'clear && sh scripts/build.sh && sh scripts/test.sh'

View File

@ -1,3 +1,4 @@
cd "$(git rev-parse --show-toplevel)" cd "$(git rev-parse --show-toplevel)"
find . -not \( -path build -prune \) -name '*.c' -o -name '*.h' \ find . -not \( -path './build' -prune \) -not \( -path './.git' -prune \) \
-name '*.c' -o -name '*.h' \
| xargs -n 1 clang-format -i | xargs -n 1 clang-format -i