Re: diff algorithm: matching similar lines

Henning Thielemann <[email protected]>
Newsgroups gmane.comp.version-control.darcs.user
Message-ID <alpine.DEB.2.02.1608212218500.7044@sputnik>
On Sun, 21 Aug 2016, Guillaume Hoffmann wrote:

> I'm afraid that what you are proposing is not possible with Darcs'
> current internal representation of patches. Darcs handles patches in a
> line-based way. So the problem is worse than computationnal cost.

I did not want to propose new patch types, just improved diff (for now).

Say I have
------
a

b

c
------

and alter it to

------
  b

  c
------

I guess that the record command would replace 'a' by ' b' and 'b' ' c' and 
drop 'c' (the current patience diff might replace all lines at once). But 
it would be more natural to drop 'a' and replace 'b' by ' b' and 'c' by ' 
c'.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.