tags:

views:

146

answers:

1

Here is a command sequence showing distinct svn diff behaviours for adding versus copying files:

$ ls -A
foo  .svn
$ svn cp foo foo.svn-cp
A         foo.svn-cp
$ svn diff foo.svn-cp
<nothing>
$ cp foo foo.cp-add
$ svn add foo.cp-add
A         foo.cp-add
$ svn diff foo.cp-add
<contents>

Some notes to head off irrelevant answers:

  • I understand the difference between these two svn actions
  • I know that if I were to edit the copied foo.svn-cp pre-commit, the diff of that edit would show (vs the original foo)
  • I agree with the distinct svn diff behaviours

I am only wondering if I can override some default to force svn diff to output foo.svn-cp in the same manner it outputs foo.cp-add.

+1  A: 

No.

Unless you want to hack around with the source code; if you do, you’re a better man than I.

Michael Hackner