Svn diff to output all lines from files

后端 未结 2 1603
深忆病人
深忆病人 2021-02-05 16:10

I\'ve been searching for a while and still can\'t find a simple solution to this problem I have. I want to produce a diff between two revisions of a file but I want the

2条回答
  •  情深已故
    2021-02-05 16:39

    Yes, you can use external diff to accomplish this. I usually do it by command like this:

    svn diff --diff-cmd diff -x "-U30" 
    

    Here, -U30 is unified context size. You should make it big enough to include all lines from file. For example, if your longest file has 1000 lines, you'd use -U1000.

提交回复
热议问题