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

RE: diff handles addition on line end funny sometimes

From: David Balažic <david.balazic_at_hermes-softlab.com>
Date: Mon, 18 May 2009 18:08:26 +0200

Stefan Küng wrote:
 
> > I understand that if every second character changes, then it
> > is considered removed/added, but in the case above it is clearly
> > an addition of text at the end of otherwise unchanged line.
>
> - virtual int Stop();
> + virtual int Stop();///< fgrg g r g
>
> *you* can recognize that there's something added at the end.
> But not an
> algorithm. Because it doesn't know that "virtual int Stop();" is the
> important part of that line. Imagine the following change:
>
> - word1 word2 word3word4
> + word1 word2 word3word5 word6 word7 word8 word9
>
> Would you consider this a small change? I wouldn't - even if
> it's only a
> change at the end.

1.) Recognizing that something is added at line end is actually trivial code.
2.) Your example is different, because you removed the last word on the line.
Even so, I see no harm in coloring the new part as "new part" and the rest as
"unchanged part of line".

But hey, your the boss/developer... ;-)

Regards,
David

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2301196

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-05-18 18:08:47 CEST

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