如何将耐心设置为默认的git diff算法 [英] How to set patience as default git diff algorithm

查看:190
本文介绍了如何将耐心设置为默认的git diff算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  [diff] 
耐心= true

但没有运气



我必须这样做吗? p>

  git diff --patience 
git show --patience HEAD

等等,每一次?

解决方案

href =https://git-htmldocs.googlecode.com/git/RelNotes/1.8.2.txt =noreferrertitle =released 2013-03-13> Git 1.8.2 , Git将使用 diff.algorithm

  git config --global diff .algorithm耐心

经过几次迭代:


[PATCH v3 0/3]返工git-diff算法选择

[PATCH v2 0/3]返工git-diff算法select离子



[补丁0/3]返工git-diff算法选择

[PATCH] diff:引入diff.algorithm变量

[PATCH] config:介绍 - 病人配置变量



In .git/config I tried:

[diff]
    patience = true

But no luck

Do I have to do:

git diff --patience
git show --patience HEAD

etc., every time?

解决方案

Since Git 1.8.2, Git will use diff.algorithm:

git config --global diff.algorithm patience

It took a few iterations:

[PATCH v3 0/3] Rework git-diff algorithm selection

[PATCH v2 0/3] Rework git-diff algorithm selection

[PATCH 0/3] Rework git-diff algorithm selection

[PATCH] diff: Introduce diff.algorithm variable.

[PATCH] config: Introduce --patience config variable

这篇关于如何将耐心设置为默认的git diff算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆