Add trailing-whitespace pre-commit hook.