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

Re: visualise the output of git-diff?

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Jun 19, 2009, 07:52 UTC
Message-ID
<87r5xgpsnr.fsf@iki.fi>
In-Reply-To
<200906190732.24455.Karlis.Repsons@gmail.com>
On 2009-06-19 07:32 (UTC), Kārlis Repsons wrote:
> this is about displaying git-diff results: in case of long text lines,
> where only a single word may be changed, it would be useful, if that
> single difference would be displayed in a different colour, but is it
> possible?

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 -
Previous: Kārlis RepsonsNext: David Aguilar
Message 2 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.