From 85183a702ab342de03d7a8d7b73e1fb0f7e346f2 Mon Sep 17 00:00:00 2001 From: Lectem Date: Sun, 31 May 2015 13:24:23 +0200 Subject: 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 --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitconfig (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 000000000..4cab7f2d9 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,2 @@ +[core] + whitespace = blank-at-eol,trailing-space,tab-in-indent -- cgit v1.2.3