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

前端 未结 2 2156
野趣味
野趣味 2021-02-19 09:33

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 l

相关标签:
2条回答
  • 2021-02-19 10:26

    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

    0 讨论(0)
  • 2021-02-19 10:28

    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
    
    0 讨论(0)
提交回复
热议问题