Trailing Whitespace
Samuel Bronson
naesten@gmail.com
Fri Jan 10 03:44:00 GMT 2014
Dmitry Samersoff <dms <at> samersoff.net> writes:
> IMHO, better approach is to install on-commit hook blocking commits
> with trailing whitespace (and tab characters) and leave old code as is.
Unfortunately, commit hooks have to be set up in every local copy of the
repository, which I can't see happening.
On the other hand, there *is* a sample "pre-commit" hook to catch trailing
whitespace installed by default in every new git repository, so it would be
as simple as running "mv .git/hooks/pre-commit{.sample,}".
More information about the Gdb
mailing list