tags:

views:

859

answers:

2

Does standard/normal diff format exist in svn or only unified format?

+3  A: 

svn help diff reveals this:

--diff-cmd arg : use ARG as diff command

Therefore you should be able to use svn diff --diff-cmd diff to use the standard diff.

Georg
svn adds -u argument by default, (at least in version 1.5.1). So, you need to specify some diff arguments via -x to override unified format. E.g. "svn diff --diff-cmd diff -x -b" works for me
Linulin
+2  A: 

svn diff --diff-cmd diff -x --normal

This has no side effects, unlike -b which causes changes in whitespace to be ignored.

Nathan