Format SVN diff as a side-by-side comparison
I wanted to produce a side by side SVN diff instead of the usual SVN diff output. Is there any way to开发者_如何学JAVA get this sort of output ?
You can specify a custom diff command:
svn --diff-cmd "diff" --extensions "-y" diff
(Or then perhaps even use tools like sdiff)
cdiff
can display side by side, incremental, and colorful diff, see its home page for detail and demo at https://github.com/ymattw/cdiff
svn diff --diff-cmd 'diff' -x '--side-by-side -W230' FILENAME
Tune the "-W230" to whatever takes full use of your screen width
精彩评论