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?
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
You can do this within svn diff itself, which works on Windows too. Say you want 20 lines of context, you can do this:
svn diff -x -U20
Taken from svn diff how to only show changed line
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With