RE: Re: Diff Question.
From: Michael Maxwell <mmaxwell_at_casl.umd.edu>
Date: Sat, 6 Sep 2008 15:58:03 -0400
Ryan Schmidt wrote:
'diff' algorithms are not perfect. Some versions of 'diff' will not find the minimal diff in certain cases (in fact, I suspect all diff programs have this characteristic for certain rare cases). I have seen versions of diff that have a '-h' parameter that is supposed to do better on large files, although it will be less good at finding minimal diffs. Other diff programs have a '-d' option, which makes them try harder to find the minimal set of differences. It may be that you need to experiment with alternative diff programs (which 'svn diff' can use if you give it the --diff-cmd <diffProgram> arg).
Having said this, I suspect the problem has to do with whitespace, as other posters have suggested. If not newlines, then maybe tabs vs. space characters, or trailing whitespace. (Some editors will automatically trim trailing whitespace.)
Mike Maxwell
CASL/ U MD
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.