本文介绍了如何在Git仓库之外使用`git diff --color-words`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 git diff --color-words 中获得输出,但是在Git之外?

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

最接近的东西是 wdiff -t ,但是它强调/反转了东西而不是使用绿色/红色,并且不允许指定我的空白正则表达式。

Closest thing is wdiff -t, but it underlines/inverts things instead of using green/red colours and does not allow specifying my whitespace regex.

推荐答案

git diff --color-words --no-index

这篇关于如何在Git仓库之外使用`git diff --color-words`?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 19:29
查看更多