force no-tab/trailing spaces with git hook

Remove unneeded stuff from pre-commit script

The check against an empty commit was not needed (it is only a security for the 1st commit after git init).
It could also possibly pose problems because of the redirection to /dev/null on some windows systems.

newline at EOF & fixed indent
This commit is contained in:
Lectem
2015-05-31 13:24:23 +02:00
parent 513f6a277e
commit 85183a702a
3 changed files with 32 additions and 0 deletions

2
.gitconfig Normal file
View File

@@ -0,0 +1,2 @@
[core]
whitespace = blank-at-eol,trailing-space,tab-in-indent