Re: [PATCH 4/4] diff-highlight: add maxhunksize config option
- From
Jeff King <peff@peff.net>
- Date
- Nov 3, 2015, 21:46 UTC
- Message-ID
- <20151103214600.GD22484@sigill.intra.peff.net>
- In-Reply-To
- <1446516334-27652-5-git-send-email-jonathan.lebon@gmail.com>
On Mon, Nov 02, 2015 at 09:05:34PM -0500, Jonathan Lebon wrote:
Show 8 quoted lines
> As the size of the hunk gets bigger, it becomes harder to jump back and > forth between the removed and added lines, and highlighting becomes less > beneficial. We add a new config option called > > diff-highlight.maxhunksize > > which controls the maximum size of the hunk allowed for which > highlighting is still performed. The default value is set to 20.
I think this makes sense. I'm pleased it is here to limit the problem space for patch 3, but I think it has value on its own as a heuristic.
-Peff