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?
Myers. Myers algorithm was developed by Myers (1986). In the git diff command, this algorithm is used as the default. The operation of this algorithm traces the two primary identical sequences recursively with the least edited script.
A diff algorithm outputs the set of differences between two inputs. These algorithms are the basis of a number of commonly used developer tools. Yet understanding the inner workings of diff algorithms is rarely necessary to use said tools.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With