Format SVN diff as a side-by-side comparison

非 Y 不嫁゛ 提交于 2019-12-20 09:00:10

问题


I wanted to produce a side by side SVN diff instead of the usual SVN diff output. Is there any way to get this sort of output ?


回答1:


You can specify a custom diff command:

svn --diff-cmd "diff" --extensions "-y" diff

(Or then perhaps even use tools like sdiff)




回答2:


cdiff can display side by side, incremental, and colorful diff, see its home page for detail and demo at https://github.com/ymattw/cdiff




回答3:


svn diff --diff-cmd 'diff' -x '--side-by-side -W230' FILENAME

Tune the "-W230" to whatever takes full use of your screen width



来源:https://stackoverflow.com/questions/6835469/format-svn-diff-as-a-side-by-side-comparison

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!