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
histogram is a better option now. See stackoverflow.com/a/32367597/2019549.In lieu of a config-based answer, you could set an alias in your .gitconfig like so:
[alias]
dp = diff --patience
Which will allow you to do git dp [optional refspec]
show and maybe a few more commands - and then try and train myself to use the new versions.merge, rebase, etc.—the real reason I wanted to set patience diff by default. I'm pretty certain I won't mind if it takes a bit longer but I don't have as many @!#$#@ conflicts.