Git refined diff output

Package

Find the location of your diff-highlight package:

pacman -Ql git | grep diff-highlight
dpkg -L git | grep diff-highlight
rpm -ql git | grep diff-highlight

Configure

Edit your ~/.gitconfig to contain this section:

[pager]
  log  = perl /usr/share/git/diff-highlight/diff-highlight | less
  show = perl /usr/share/git/diff-highlight/diff-highlight | less
  diff = perl /usr/share/git/diff-highlight/diff-highlight | less

Usage

Now your git diff will highlight individual changes.

Future

All we have to do now is wait until git will have the diff highlight properly implemented as a flag or config option instead of having it written in an obsolete and slow programming language.