问题
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