Which version control tools have a diff tool that ignores spaces, curly braces, etc. when calculating the difference between verified versions? I seem to remember that Clearcase diff did this, but Visual SourceSafe (or at least the version I used) did not.
I ask, probably quite typical. Four completely intelligent developers on a team have four completely different ways to format their code. After checking the code, the last modified by someone else, each of them immediately starts some kind of macro program or editor to format things the way they like. They make real changes to the code. They check their changes. They go on vacation. Two days later, this program, which worked perfectly for two years, explodes. The developer, assigned to the error, makes the difference between the versions and discovers 204 differences, only 3 of which have any meaning, since the diff algorithm is lame.
Yes, you may have coding standards. Most of them consider them terrible. A solution in which everyone can have their own cake and eat, also seems much more preferable.
==========
EDIT: Thanks to everyone for the great suggestions.
What I subtract from this:
(1) A preferred source control system with diversity types.
(2) Find the diff with the appropriate parameters.
(3) Use a good source code formatting program and leave it to the registration standard.
Sounds like a plan. Thanks again.
version-control
Newton falls
source share