How to get diff working like git-diff?

前端 未结 14 2241
慢半拍i
慢半拍i 2020-12-12 10:42

I like the output formatting of git diff. The color and the +/- representation of changes between lines is easier to read than GNU di

14条回答
  •  Happy的楠姐
    2020-12-12 11:05

    I think the config setting :

    [color]
         ui = true
    

    combined with "diff" command's --relative= option would do what you wanted. Did you try ?

提交回复
热议问题