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

Re: diff wish

From: Neels J Hofmeyr <neels_at_elego.de>
Date: Fri, 17 Jun 2011 19:16:26 +0200

On 06/16/2011 01:24 PM, Branko Čibej wrote:
> On 16.06.2011 12:38, Neels J Hofmeyr wrote:
>> On 06/15/2011 02:44 PM, Branko Čibej wrote:
>>> GNU diff is a general-purpose diff tool. 'svn diff' is not.
>> Then again, we now have 'svn patch' because some platforms "lack" general
>> purpose commandline diff/patch tools. And we do already have specific
>> tweaking options for the internal diff: -u, -b, -w, --ignore-eol-style, -p.
> Indeed, but all of these are tailored to the Subversion's needs, whereas
> GNU diff can be used in a myriad other environments. For example, "svn
> diff" always produces unified diff output; GNU diff also does context
> diffs, ed scripts, etc. etc -- none of which we really need or want in
> our implementation.
> We should just keep in mind that it is /not/ the goal of this exercise
> to produce a general-purpose diff tool to compete with GNU diff.

I agree with that, but I think that an option like --minimal would fit in
the same bucket as the -w or --ignore-eol-style options. The output is still
a unidiff, just the diffed lines trivially shifted around.


Received on 2011-06-17 19:17:02 CEST

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.