Re: [PATCH] diff: add --ignore-blank-lines option
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- Jun 4, 2013, 19:08 UTC
- Message-ID
- <CALWbr2zJCxbW8Qug0i=oGvKZV5-vcAugextxMuQp9jaoaZYpyg@mail.gmail.com>
- In-Reply-To
- <7vzjv57mwx.fsf@alter.siamese.dyndns.org>
On Tue, Jun 4, 2013 at 8:26 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Antoine Pelisse <apelisse@gmail.com> 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,