From: Antoine Pelisse Date: Tue, 04 Jun 2013 19:08:03 GMT Subject: Re: [PATCH] diff: add --ignore-blank-lines option Message-ID: In-Reply-To: <7vzjv57mwx.fsf@alter.siamese.dyndns.org> On Tue, Jun 4, 2013 at 8:26 PM, Junio C Hamano wrote: > Antoine Pelisse writes: > >> +xdchange_t *xdl_get_hunk(xdchange_t **xscr, xdemitconf_t const *xecfg) { >> xdchange_t *xch, *xchp; >> long max_common = 2 * xecfg->ctxlen + xecfg->interhunkctxlen; >> + long ignorable_context = max_common / 2 - 1; > > Could you explain how this math works? I think it doesn't, mostly because I misinterpreted the "interhunkctxlen". I will try to think about that and provide a reroll. Thanks for the review and analysis. Antoine,