cc-haxe/pre-commit.sh

16 lines
178 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
2023-08-01 11:16:18 +00:00
git diff --name-only --cached | xargs -l git add
2023-07-30 21:33:51 +00:00
# build
make build