in reply to When not to use subdiff
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".- <ds:KeyName>foo.work.se</ds:KeyName> - ^^^^^^^ ^^^ ^^^^^^^^^ - <ds:KeyName>splat.work.se</ds:KeyName> - ^^^^^^^^^^^^^^^^^^^^^^^^ + <ds:KeyName>foo-test.work.se</ds:KeyName> + ^^
Probably another good case for a "percentage of changed characters is over x%" check.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: When not to use subdiff
by Tux (Canon) on Aug 25, 2018 at 09:10 UTC | |
Re^2: When not to use subdiff
by Tux (Canon) on Aug 25, 2018 at 12:00 UTC | |
by dsheroh (Monsignor) on Aug 26, 2018 at 08:53 UTC | |
by Tux (Canon) on Aug 26, 2018 at 08:58 UTC |