
29 Aug
2013
29 Aug
'13
6:52 a.m.
The problem with these kind of commit-time checks is that you only find out the problem *after* you've validated your nicely polished commits. This is easily solved by adding this line to .emacs file:
(add-hook 'before-save-hook 'delete-trailing-whitespace) No more trailing whitespaces. Ever. On the other hand problem with NOT having these kind of checks is that I'm seeing some trailing whitespaces appearing in modules that I have cleaned from trailing whitespaces! Which means that I have to spend time with `git add -i` and separating whitespace changes from other changes (or ignore policy about whitespace changes going in a separate commit). Janek