Re: [PATCH] Improve contrib/diff-highlight to highlight unevenly-sized hunks
From: Patrick Palka <hidden>
Date: 2016-06-15 23:05:23
On Thu, Jun 18, 2015 at 3:08 PM, Jeff King [off-list ref] wrote:
On Thu, Jun 18, 2015 at 12:28:58PM -0400, Patrick Palka wrote:quoted
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.