You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Julian Foad (JIRA)" <ji...@apache.org> on 2019/02/20 11:54:00 UTC

[jira] [Created] (SVN-4808) Diff prints headers without diffs, using external diff-cmd

Julian Foad created SVN-4808:
--------------------------------

             Summary: Diff prints headers without diffs, using external diff-cmd
                 Key: SVN-4808
                 URL: https://issues.apache.org/jira/browse/SVN-4808
             Project: Subversion
          Issue Type: Bug
            Reporter: Julian Foad


 

_(I'm filing this from memory, with no reproduction recipe at hand. Details could be wrong. Could even have been fixed, but I'm not aware it has.)_

svn diff can print diff headers without diffs, when an external diff-cmd is configured, in certain cases:
{code:java}
Index: abc
===================={code}
It never shows this kind of output when using the internal diff.

What happens, roughly, is that if the low level diffing algorithm spits out anything through its "text changed" API, then the high level first prints this "Index:" header and then calls the configured external diff tool. In some cases the "text changed" API call can spit out a no-op, and in other cases it can spit out a real text change that consists only of changes that the external diff tool ignores, such as EOL-style changes. In either of those cases, you can get this result.

When this happens, it's often for a whole lot of files, e.g. all the files on a branch-creation diff, which makes it annoying.

_(Need a_ _reproduction recipe_ _or test case.)_

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)