Add pre-commit hook and setup script

Runs the appropriate linter on staged files before committing.
This commit is contained in:
2019-05-14 12:42:56 +02:00
parent 2a675c9417
commit 0a8284f1ed
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/sh
cp scripts/git-hooks/pre-commit .git/hooks