this change adds an if statement to the pre-hook that will either dump the diff into the terminal if its less then or equal to 30 charaters or will write it to a temp file and tell the user where said file is so they can read the fixes.
this helps if the user is using something like an ide. examples would include clion,possibly netbeans,and visual studio.
The issue is that the prehook output doesnt get dumped into a full terminal (in the case of clion anyway) and ends up being obstructed by the ui of the ide product.
This allows importing of external libraries into externals/ without
having to reformat them. Unfortunately it also allows whitespace to be
introduced in files like the root CMakeLists.txt, but that is a small
downside compared to the tradeoff.
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