subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: diff-optimizations-tokens branch: I think I'm going to abandon it
Date Fri, 03 Dec 2010 12:17:20 GMT
On 02.12.2010 21:21, Johan Corveleyn wrote:
> On Thu, Dec 2, 2010 at 6:18 PM, Bill Tutt <bill@tutts.org> wrote:
>> Additional ignore whitespace related comment:
>> * IIRC, Perforce had an interesting twist on ignoring whitespace. You
>> could ignore just line leading/ending whitespace instead of all
>> whitespace differences but pay attention to any whitespace change
>> after the "trim" operation had completed.
>>
>> e.g.:
>> * "    aaa bbb   " vs "aaa bbb" would compare as equal
>> * "    aaa  bbb  " vs "aaa  bbb" would compare as equal
>> * "    aaa  bbb  " vs "aaa bbb" would compare as non-equal due to the
>> white space change in the middle of the line
> Cool (svn doesn't have that option). But I'm not sure what that would
> be useful for (as a user, I can't immediately imagine an important use
> case). Anyway, could still be a nice option...

It filters out the noise when code is only reindented, but catches
whitespace differences in, say, literal strings within the reindented code.

-- Brane

Mime
View raw message