http://hades.name/blog/tag/kompare/Hades Blag blog posts with tag intersection kompare2010-01-17T22:30:50ZEdwarddjango-atompubhttp://hades.name/blog/2009/01/18/git-and-kompare/Git and Kompare2010-01-17T22:30:50Z2009-01-18T12:50:42Z<p>Everyone knows, that <a href="http://git-scm.com">Git</a> is the best version control system, and <a href="http://kde.org"><span class="caps">KDE</span></a> is the best desktop environment out&nbsp;there.</p> <p>So recently I had a nice idea: wouldn’t it be nice if git diffs could be viewed by <span class="caps">KDE</span> file comparison and diff viewer tool called <a href="http://www.caffeinated.me.uk/kompare/">Kompare</a>? Sure it&nbsp;would.</p> <p>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&nbsp;.bashrc):</p> <div class="code">kg(){<br /> &nbsp;&nbsp;file=`mktemp`<br /> &nbsp;&nbsp;git &#8220;$@&#8221; > $file<br /> &nbsp;&nbsp;kompare $file<br /> &nbsp;&nbsp;rm $file<br /> }</div> <p>Use as follows: <code>kg show -v</code>, or <code>kg diff HEAD^</code>.</p>