How can I change the svn diff patch number of context lines?

可紊 提交于 2019-12-22 04:04:02

问题


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).

Is there any way to do it?


回答1:


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


来源:https://stackoverflow.com/questions/31291513/how-can-i-change-the-svn-diff-patch-number-of-context-lines

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