[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] Re: Re[2]: Official request... Directory Diff

From: Jens Scheidtmann <Jens.Scheidtmann_at_bayerbbs.com>
Date: 2005-03-16 11:26:00 CET

Molle Bestefich <molle.bestefich@gmail.com> writes:

> Jean-Marc van Leerdam wrote:
> > Back to the topic of diff colors: What are the exact meanings of the
> > colors listed in the m_BinDiffColors array?

The binary diff is best thought of as:

- Built up second string from longest substrings, which can be found in first string.
- color those parts alike.

m_BinDiffColors is the (cycled) array providing these colors.

I.e. the second string will be colored by m_BinDiffColors[0], [1],
etc. according to the matched substrings from first string (from left
to right).

If parts of the first string cannot be found in second string, these will have
the same color as the string in the left display (red).

If parts of the second string cannot be found in first string, these
will have the same color as the string in the right display (yellow).

If the same part of the first string is used many times, "later"
colors take precedence in the first string (e.g. compare "abcXYZdef"
and "ABCXYZDEFXYZIJKXYZLMN").

[...]
> The reason for each match to get a different color is that the exact
> position of the matched strings does not matter; they can be shuffled
> inside the two lines. The color is used to indicate which strings
> relate from one line to the other.

So you want to have them as visually distinct as possible.

See:
http://wellstyled.com/tools/
http://www.colorschemer.com/online.html

Jens

-- 
Jens.Scheidtmann@bayerbbs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Mar 16 11:26:47 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.