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. ~Neels
signature.asc
Description: OpenPGP digital signature