如何将耐心设置为默认的git diffalgorithm

在.git / config我试过了:

[diff] patience = true 

但没有运气

我必须这样做:

 git diff --patience git show --patience HEAD 

等等,每一次?

从Git 1.8.2开始 ,Git将使用diff.algorithm

 git config --global diff.algorithm patience 

它花了几个迭代:

[PATCH v3 0/3]返工git-diffalgorithmselect

[PATCH v2 0/3]返工git-diffalgorithmselect

[补丁0/3]返工git-diffalgorithmselect

[PATCH] diff:引入diff.algorithmvariables 。

[PATCH] config:介绍 – 病态configurationvariables

代替基于configuration的答案,您可以在.gitconfig设置别名, .gitconfig所示:

[alias]
dp = diff --patience

哪个可以让你做git dp [optional refspec]