[ https://issues.apache.org/jira/browse/SVN-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083780#comment-16083780 ]
Julian Foad commented on SVN-1056: ---------------------------------- 'svn diff --git' does indeed now produce a 'rename' for the added side, but it still produces a 'delete' as well, either before or after. If it would omit that, then 'svn patch' would work. > 'svn diff' should express tree changes > -------------------------------------- > > Key: SVN-1056 > URL: https://issues.apache.org/jira/browse/SVN-1056 > Project: Subversion > Issue Type: Improvement > Components: unknown > Affects Versions: all > Environment: other > Reporter: Subversion Importer > Fix For: unscheduled > > > {noformat:nopanel=true} > I'd like to have an option (maybe --copy / -c) to svn diff that will > track copies/moves. > E.g., > svn cp foo.txt bar.txt > (edit bar.txt) > svn diff -c > would show me the differences between repository foo.txt and working > copy bar.txt. The output could be something like: > Index: bar.txt (copied from foo.txt) > =================================================================== > --- foo.txt (revision 23) > +++ bar.txt (working copy) > @@ -100,1 +100,1 @@ > - old stuff > + new stuff > At the moment, svn diff would just show me bar.txt being added. The > current behaviour makes the diff output less useful when read (a) it > clutters up the output with the entire contents of bar.txt, (b) it > makes it hard to see what changes have been made to the contents of > the file, (c) it loses information. > If the -c option is added, maybe it should just give a one line report > for deleted files, instead of listing the contents of the file. > [The change I'm suggesting needs to be added as an option - plain svn > diff should continue to generate output consistent with the > traditional unix patch/diff commands.] > {noformat} > Original issue reported by *suckfish* -- This message was sent by Atlassian JIRA (v6.4.14#64029)