[darcs-users] Re: an interface for splitting hunks

Benedikt Schmidt ry102 at rz.uni-karlsruhe.de
Thu Mar 31 15:27:02 UTC 2005


David Roundy <droundy at abridgegame.org> writes:

> On Wed, Mar 30, 2005 at 05:21:31PM +0200, Benedikt Schmidt wrote:
>> Here is how the diff code i'm working on for darcs (similar to the one in
>> GNU diff) creates the diff:
> ...
>
> I'm looking forward to seeing your new code! (especially if it's smart
> about these sorts of issues!)

It's not smart about these things yet, but it shouldn't be that hard to
add a heuristic that prefers hunks that start/end with user defined lines.

I've put up the code if someone wants to test it:
(darcs wh takes 2.5 seconds instead of 82 on the files mentioned in
http://bugs.darcs.net//Ticket/Display.html?id=222 here)

darcs unstable with new diff code:
http://www.stud.uni-karlsruhe.de/~ry102/darcs/darcs.unstable

standalone diff tool with the same diff code (for testing):
http://www.stud.uni-karlsruhe.de/~ry102/darcs/hdiff

Benedikt





More information about the darcs-users mailing list