Git: Use Patience Diff Algorithm for Readability

Git: Use Patience Diff Algorithm for Readability

Command

git config --global diff.algorithm patience

Why use it?

Patience diff tends to generate a more readable changes which greatly enhances code reviews. This gist from @roryokane shows the difference between myers (default) and patience diff.

Why not use it?

Patience diff is slower than the default diff algorithm.

Reference