Re: RFC: git diff colorization idea
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jan 23, 2009, 18:40 UTC
- Message-ID
- <m3iqo5yiek.fsf@localhost.localdomain>
- In-Reply-To
- <53497057-1ADE-4300-9F35-B218959606FE@wincent.com>
Wincent Colaiuta <win@wincent.com> writes:
> Lately I've been wishing that Git's diff output were colorized in a > way that combines the standard line-by-line colorizing with the word- > by-word colorizing you get with --color-words.
I like this idea, also because Emacs ediff / ediff3 / emerge uses it, from what I understand under the name of 'refinement'.
Show 5 quoted lines
> > Pictures speak louder than words, so here are some to show what I mean: > > http://www.flickr.com/photos/wincent-colaiuta/sets/72157612877491482/ >
[...]
There was some discussion in this thread on how to do this, whether with --refine / --color-chars we shoud ony highlight differences, or whether for example use reverse (i.e. background green or background red), or other red / other green, or perhaps bold, or perhaps underline to highlight regions in line which differ
> - Meld: http://meld.sourceforge.net/meld_file1.png
Not extremly good example, as it uses equivalent of context diff format (-,+,!) with added, removed and _changed_ lines, and not unified diff format (only added / removed lines).
> Would people be interested in seeing this feature go in? [...]
+1 from me
-- Jakub Narebski Poland ShadeHawk on #git