How to set patience as default git diff algorithm

GitDiff

Git Problem Overview


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?

Git Solutions


Solution 1 - Git

Solution 2 - Git

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]

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEoghanMView Question on Stackoverflow
Solution 1 - GitTobuView Answer on Stackoverflow
Solution 2 - GiturschreiView Answer on Stackoverflow