Is there a way to automatically strip out trailing whitespace in code on commit to CVS?
Posted
by Steven Swart
on Stack Overflow
See other posts from Stack Overflow
or by Steven Swart
Published on 2009-07-28T13:50:12Z
Indexed on
2010/04/12
5:03 UTC
Read the original article
Hit count: 522
Hi!
We're using CVS, on every release we have to synchronise two different branches of code, and in every release cycle it's the same story, whitespace problems causing errors and wasting time.
I'm looking for a way to automatically strip out trailing whitespace upon committing a file to CVS, unless explicitly forbidden, say by a command-line option. Is there a solution already available? If not, would anyone be interested if I wrote a plugin to do this?
Regards, Steven
© Stack Overflow or respective owner