如何更改上下文行的 svn diff 补丁数? [英] How can I change the svn diff patch number of context lines?

查看:25
本文介绍了如何更改上下文行的 svn diff 补丁数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找的是:使用 svn diff,如何在添加的新代码上方和下方打印更多行?

What I'm exactly looking for is: using svn diff, how to print more lines above and below the new code which is being added?

默认情况下,它会打印一些未更改的行(在更改的新代码下方/上方).

By default it will print some lines which are unchanged (both below/above the new code which is changed).

有什么办法吗?

推荐答案

如果您使用的是 linux,请告诉您的 diff 工具 要在结果中包含多少行,例如 10:

If you are on linux, tell your diff tool how many lines to include into result, for example 10:

svn diff --diff-cmd=diff -x -U10

这篇关于如何更改上下文行的 svn diff 补丁数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆