16 lines
194 B
Bash
Executable File
16 lines
194 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 --diff-filter=d | xargs -l git add
|
|
# build
|
|
|
|
make build
|
|
|