git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* visualise the output of git-diff?
@ 2009-06-19  7:32 Kārlis Repsons
  2009-06-19  7:52 ` Teemu Likonen
  2009-06-19  8:42 ` Wincent Colaiuta
  0 siblings, 2 replies; 4+ messages in thread
From: Kārlis Repsons @ 2009-06-19  7:32 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

Hi,
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?
And about pager - are you people all using less or there are also some 
non-console viewers available?

Kārlis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: visualise the output of git-diff?
  2009-06-19  7:32 visualise the output of git-diff? Kārlis Repsons
@ 2009-06-19  7:52 ` Teemu Likonen
  2009-06-19  8:47   ` David Aguilar
  2009-06-19  8:42 ` Wincent Colaiuta
  1 sibling, 1 reply; 4+ messages in thread
From: Teemu Likonen @ 2009-06-19  7:52 UTC (permalink / raw)
  To: Kārlis Repsons; +Cc: git

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 -

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: visualise the output of git-diff?
  2009-06-19  7:32 visualise the output of git-diff? Kārlis Repsons
  2009-06-19  7:52 ` Teemu Likonen
@ 2009-06-19  8:42 ` Wincent Colaiuta
  1 sibling, 0 replies; 4+ messages in thread
From: Wincent Colaiuta @ 2009-06-19  8:42 UTC (permalink / raw)
  To: "Kārlis Repsons"; +Cc: git

El 19/6/2009, a las 9:32, Kārlis Repsons escribió:

> Hi,
> 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?


I started working on a patch for that feature a while back and then  
got snowed under by other work, but it's still on my TODO list. There  
was some discussion on the list about the idea.

The relevant thread starts with
	
	Message-ID: <53497057-1ADE-4300-9F35-B218959606FE@wincent.com>
	Subject: RFC: git diff colorization idea

Browsable copy here:

	http://article.gmane.org/gmane.comp.version-control.git/106805

Cheers,
Wincent

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: visualise the output of git-diff?
  2009-06-19  7:52 ` Teemu Likonen
@ 2009-06-19  8:47   ` David Aguilar
  0 siblings, 0 replies; 4+ messages in thread
From: David Aguilar @ 2009-06-19  8:47 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Kārlis Repsons, git

On Fri, Jun 19, 2009 at 10:52:08AM +0300, Teemu Likonen wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-19  8:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19  7:32 visualise the output of git-diff? Kārlis Repsons
2009-06-19  7:52 ` Teemu Likonen
2009-06-19  8:47   ` David Aguilar
2009-06-19  8:42 ` Wincent Colaiuta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).