How can I use `git diff --color-words` outside a Git repository?

前端 未结 5 1330
既然无缘
既然无缘 2020-12-13 03:28

How can I get output like in git diff --color-words, but outside Git?

Closest thing is wdiff -t, but it underlines/inverts things instead

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 04:12

    According to a comment from Jefromi you can just use

    git diff --color-words file1 file2
    

    outside of git repositories too.

提交回复
热议问题