Everyone knows, that Git is the best version control system, and KDE is the best desktop environment out there.

So recently I had a nice idea: wouldn’t it be nice if git diffs could be viewed by KDE file comparison and diff viewer tool called Kompare? Sure it would.

Still don’t know if it possible by editing Git configuration only, but I did a little bash function that does it (put in your .bashrc):

  git "$@" > $file
  kompare $file
  rm $file

Use as follows: kg show -v, or kg diff HEAD^.