行内差分をハイライト

diff-highlight で公開されている git-contrib の1つ.

$ cd ~/bin
$ wget https://raw.github.com/git/git/master/contrib/diff-highlight/diff-highlight
$ chmod +x diff-highlight
$ vi ~/.gitconfig

.gitconfigあたりに記述

[pager]
    log = diff-highlight | less
    show = diff-highlight | less
    diff = diff-highlight | less

見た目はこんな感じ

f:id:ihiroky:20140115060247p:plain