git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: visualise the output of git-diff?

From
David Aguilar <davvid@gmail.com>
Date
Jun 19, 2009, 08:47 UTC
Message-ID
<20090619084731.GB46896@gmail.com>
In-Reply-To
<87r5xgpsnr.fsf@iki.fi>
On Fri, Jun 19, 2009 at 10:52:08AM +0300, Teemu Likonen wrote:
Show 11 quoted lines
> On 2009-06-19 07:32 (UTC), Kārlis Repsons wrote:
> 
> At least there is "git diff --color-words" but it may not be what you
> want.
> 
> > And about pager - are you people all using less or there are also some
> > non-console viewers available?
> 
> I mostly use "less" but sometimes also "kompare" which is excellent:
> 
>     git diff | kompare -

And of course.. don't forget about git-difftool =) http://kernel.org/pub/software/scm/git/docs/git-difftool.html

	$ git difftool -t kompare
	$ git difftool -t diffuse
	$ git difftool -t xxdiff

The quality of the visualization is only limited by the quality of your difftool. We support lots of them. From the docs:

"Valid merge toosl are: kdiff3, kompare, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, diffuse, opendiff and araxis."

Like mergetool, difftool has an extension mechanism in case the built-ins are not sufficient.

Have fun,
-- 
		David
Previous: Teemu LikonenNext: Wincent Colaiuta
Message 3 of 4 in “visualise the output of git-diff?”
  1. Kārlis RepsonsJun 19, 2009
  2. Teemu LikonenJun 19, 2009
  3. David AguilarJun 19, 2009
  4. Wincent ColaiutaJun 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.