Skip .git directory in format and entr scripts
This commit is contained in:
parent
d1b350f6ec
commit
3bc640b656
@ -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'
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user