Adding githooks fold
This commit is contained in:
parent
47d6c94161
commit
d5cd5bfbd7
1 changed files with 6 additions and 0 deletions
6
.githooks/pre-commit
Normal file
6
.githooks/pre-commit
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
added_files=$(git diff --name-only --cached --diff-filter=d)
|
||||
|
||||
make format
|
||||
git add ${added_files}
|
||||
Loading…
Add table
Add a link
Reference in a new issue