Format SVN diff as a side-by-side comparison

前端 未结 3 1635
盖世英雄少女心
盖世英雄少女心 2021-02-01 07:01

I wanted to produce a side by side SVN diff instead of the usual SVN diff output. Is there any way to get this sort of output ?

相关标签:
3条回答
  • 2021-02-01 07:35

    You can specify a custom diff command:

    svn --diff-cmd "diff" --extensions "-y" diff
    

    (Or then perhaps even use tools like sdiff)

    0 讨论(0)
  • 2021-02-01 07:42

    svn diff --diff-cmd 'diff' -x '--side-by-side -W230' FILENAME

    Tune the "-W230" to whatever takes full use of your screen width

    0 讨论(0)
  • 2021-02-01 07:49

    cdiff can display side by side, incremental, and colorful diff, see its home page for detail and demo at https://github.com/ymattw/cdiff

    0 讨论(0)
提交回复
热议问题