Re: RFC: git diff colorization idea
From: Jakub Narebski <hidden>
Date: 2016-06-15 22:46:01
Wincent Colaiuta [off-list ref] 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'.
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