Skip .git directory in format and entr scripts
This commit is contained in:
1 parent
d1b350f6ec
commit
3bc640b656
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -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'
|
||||||
+2
-1
@@ -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
|
||||||
Reference in new issue
Block a user