|
|
@ -2,15 +2,11 @@ Put the following in `.git/hooks/pre-commit`: |
|
|
|
|
|
|
|
```shell |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
for file in $(git status --porcelain --untracked=all | cut -b 4- | grep "\.png$") ; do pngcrush -brute -ow $file; done |
|
|
|
tools/scripts/lint.py || exit 1 |
|
|
|
``` |
|
|
|
|
|
|
|
And in `.git/modules/public/hooks/pre-commit`: |
|
|
|
|
|
|
|
And in `Content/.git/hooks/pre-commit`: |
|
|
|
```shell |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
tools/scripts/lint.py || exit 1 |
|
|
|
dotnet test SharedTests/SharedTests.csproj || exit 1 |
|
|
|
for file in $(git status --porcelain --untracked=all | cut -b 4- | grep "\.png$") ; do pngcrush -brute -ow $file; done |
|
|
|
``` |