Git and Kompare

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):

kg(){
  file=`mktemp`
  git “$@” > $file
  kompare $file
  rm $file
}

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

Pingbacks: 3

propecia
www.treintadetreinta.org, 20:01 (after 1601 day)
rimonabantexcellence site title
Hello http://hades.name/blog/2009/01/18/git-and-kompare/
www.rimonabantexcellence.com, 05:45 (after 1600 days)
Tip of the day: Kompare with git and svn « Yngve Inntjore Levinsen's blog
This is a short blog post based on this wonderful tip, which I have slightly modified.
eothred.wordpress.com, 10:59 (after 376 days)

Comments: 1 (already: 1) Comment post

another way is to use git diff HEAD^ | kompare -

disjunctor , 12:16 (after 371 day)

Comment form for «Git and Kompare»

Required. 30 chars of fewer.

Required.

Comment post