Re: possible Improving diff algoritm
- From
Javier Domingo <javierdo1@gmail.com>
- Date
- Dec 15, 2012, 12:16 UTC
- Message-ID
- <CALZVapnNFMAMM_UVjgR01DZ2MZhQbJHm7dMLpGzdRqhzrzBuyg@mail.gmail.com>
- In-Reply-To
- <20121214222938.GB19410@client.brlink.eu>
If just empty lines alone, then it is forced to say there is a new line. That is beyond this use-case. Javier Domingo
2012/12/14 Bernhard R. Link <brl+git@mail.brlink.eu>:
Show 30 quoted lines
> * Javier Domingo <javierdo1@gmail.com> [121214 13:20]:
>> I think the idea of being preferable to have a blank line at the end
>> of the added/deleted block is key in this case.
>
> For symmetry I'd suggest to make it preferable to have blank lines
> at the end or the beginning.
>
> {
> old
> + }
> +
> + {
> + new
> }
>
> vs
>
> {
> old
> }
> +
> + {
> + new
> + }
>
> is just the same case in blue.
> (Although empty lines alone feels not quite optimal, it is at least a
> good start).
>
> Bernhard R. Link