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

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