git

Git: Use Patience Diff Algorithm for Readability

1 min read
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

Read more articles like this in the future by buying me a coffee!

Buy me a coffeeBuy me a coffee

Related Articles