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

Re: [PATCH] Extra options for libsvn_diff

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-02-16 00:54:09 CET

On 2/15/06, Peter N. Lundblad <peter@famlundblad.se> wrote:
> Hi,
>
> I've been spending some time in libsvn_diff/diff_file.c implementing
> options to ignore whitespace, eol-style and the -p option of GNU diff
> (--show-c-function).
>
> The patch is nearly complete. Some cleanups are remaining and I'll write
> some tests. I've tested it with very small chunk sizes to shake out most
> bugs (I hope), but since this gets rather hairy (at least for me), some
> more eyes would really be appreciated. Oh, and ofcourse, the patch was
> produced using the -p option:-)

One comment, this seems to add -b, -w, and -p options, we might also
want to accept the -u option (unified), and just ignore it since
that's our default. This would let people who use GNU diff as their
--diff-cmd continue to use the same kind of -x options, for example I
currently use --diff-cmd diff -x-up to generate patches for review.

Of course, now I see in the actual code we do have the 'u' option in
the diff_options structure. This should probably be mentioned in the
log ;-)

Another thing is that perhaps in 2.0 we should be using names like
svn_diff_file_output_unified_three instead of
svn_diff_file_output_unified3, so we don't end up with this strange _2
suffixes.

As for the code, I don't know the diff code all that well, but at
first glance it seems reasonable.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 16 00:54:28 2006

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

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