I ran into some surprising output one of the first times I used
ccdiff after getting back to work this week:
- <ds:KeyName>foo.work.se</ds:KeyName>
- ^^^^^^^ ^^^ ^^^^^^^^^
- <ds:KeyName>splat.work.se</ds:KeyName>
- ^^^^^^^^^^^^^^^^^^^^^^^^
+ <ds:KeyName>foo-test.work.se</ds:KeyName>
+ ^^
Took me a minute to figure out that it was seeing the diff as "up to 'foo' from the first line, then insert '-t', grab an 'e' and an 's' from later in the first line, and finally take everything starting with 't' on the second line" rather than "insert '-test' on the first line and drop the second line entirely".
Probably another good case for a "percentage of changed characters is over x%" check.