2016-06-30-git-diff-algorithm.md 578 B


title: Better Git diff algorithm

categories: bits

According to Git documentation{:rel="nofollow noopener noreferrer"} the diff uses one of four algorithms. According to this SO explanation{:rel="nofollow noopener noreferrer"} the histogram algorithm has all of patience's goodness, and it's slightly faster than the default algorithm.

Add to your ~/.gitconfig

[diff]
  algorithm = histogram