将 SVN diff 格式化为并排比较
我想生成一个并排的 SVN diff,而不是通常的 SVN diff 输出。 有什么方法可以得到这种输出吗?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以指定自定义 diff 命令:(
或者甚至可以使用 sdiff 等工具)
You can specify a custom diff command:
(Or then perhaps even use tools like sdiff)
cdiff
可以显示并排、增量和彩色差异,请参阅其主页了解详细信息和演示: https://github.com/ymattw/cdiffcdiff
can display side by side, incremental, and colorful diff, see its home page for detail and demo at https://github.com/ymattw/cdiffsvn diff --diff-cmd 'diff' -x '--side-by-side -W230' 文件名
将“-W230”调整为充分利用屏幕宽度的值
svn diff --diff-cmd 'diff' -x '--side-by-side -W230' FILENAME
Tune the "-W230" to whatever takes full use of your screen width