From: Junio C Hamano Date: Fri, 19 Jun 2015 17:20:00 GMT Subject: Re: [PATCH] Improve contrib/diff-highlight to highlight unevenly-sized hunks Message-ID: In-Reply-To: <20150619053223.GA27241@peff.net> Jeff King writes: > I do strip it off, so it is OK for it to be different in both the > pre-image and post-image. But what I can't tolerate is the > intermingling with actual data: > > +\t\t\x1b[32m;foo > +\t\x1b[32m;bar I think that depends on the definition of "strip it off" ;-) What I meant was that whitespace coloring can appear anywhere on the line, e.g. echo COPYING whitespace=tab-in-indent,-space-before-tab >.gitattributes printf " \tHeh\n" >>COPYING git diff will give you + SP HT Heh LF Obviously, stripping "+" painted in "new" is not sufficient. Side note: hmm, shouldn't that SP painted in , though? > I think this "array of spans" is the only way to go. Otherwise whichever > markup scheme processes the hunk first ruins the data for the next > processor. Yes, I agree with that 100%.