From: Patrick Palka Date: Thu, 18 Jun 2015 20:27:51 GMT Subject: Re: [PATCH] Improve contrib/diff-highlight to highlight unevenly-sized hunks Message-ID: In-Reply-To: <20150618190841.GB12769@peff.net> On Thu, Jun 18, 2015 at 3:08 PM, Jeff King wrote: > On Thu, Jun 18, 2015 at 12:28:58PM -0400, Patrick Palka wrote: > >> By the way, what would it take to get something like this script into >> git proper? It is IMHO immensely useful even in its current form, yet >> because it's not baked into the application hardly anybody knows about >> it. > > I think if we were going to make it more official, it would make sense > to do it inside the diff code itself (i.e., not as a separate script), > and it might be reasonable at that point to actually do a "real" > character-based diff rather than the hacky prefix/suffix thing (or > possibly even integrate with the color-words patterns to find > syntactically interesting breaks). There is some discussion in the > "Bugs" section of contrib/diff-highlight/README. > > -Peff Thanks for the pointers. This is something I am interested in implementing (though not any time soon). I was actually in the process of familiarizing myself with the diff code before I discovered the existence of diff-highlight by accident.