cc-haxe/pre-commit.sh

16 lines
178 B
Bash
Executable File

#!/usr/bin/env sh
# Run:
# ln -s ../../pre-commit.sh .git/hooks/pre-commit
set -e
# format
make format
git diff --name-only --cached | xargs -l git add
# build
make build