cc-haxe/pre-commit.sh

16 lines
194 B
Bash
Raw Normal View History

2023-07-30 21:33:51 +00:00
#!/usr/bin/env sh
# Run:
# ln -s ../../pre-commit.sh .git/hooks/pre-commit
set -e
# format
make format
git diff --name-only --cached --diff-filter=d | xargs -l git add
2023-07-30 21:33:51 +00:00
# build
make build