Re: [PATCH] Improve contrib/diff-highlight to highlight unevenly-sized hunks
- From
Jeff King <peff@peff.net>
- Date
- Jun 18, 2015, 19:08 UTC
- Message-ID
- <20150618190841.GB12769@peff.net>
- In-Reply-To
- <CA+C-WL-CC9o13Rxrr+mKw+vbx=aEJmguLnwMwO=fE-JPJ2DqEg@mail.gmail.com>
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