Re: JGIT: discuss: diff/patch implementation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Francis Galiegue <fg@...>
Cc: Git Mailing List <git@...>, Shawn O. Pearce <spearce@...>, Robin Rosenberg <robin.rosenberg.lists@...>
Date: Monday, November 10, 2008 - 3:46 pm

Hi,

On Mon, 10 Nov 2008, Francis Galiegue wrote:


Do not forget creating efficient packs.  They also need an efficient diff 
engine.


Nice.

As was pointed out already, it is more meant to work on text than I'd like 
to, and it also seems to have cute DWIMery for HTML.

I did not find any implementation, so I started implementing my own 
version of Gene Myers' algorithm, with the plan to extend it with a 
patience diff option.

My code so far can generate a diff between two files, but does not use 
O(D) space (where D is the number of differences), but O(D^2), as I did 
not have enough time (a conference, and traveling around the world can do 
that to you).

Having looked at the source code of diff-patch-match, I admit that I do 
not understand enough of the algorithm with so little documentation, so I 
will continue my fun project.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
JGIT: discuss: diff/patch implementation, Francis Galiegue, (Mon Nov 10, 10:22 am)
Re: JGIT: discuss: diff/patch implementation, Rogan Dawes, (Tue Nov 11, 3:27 am)
Re: JGIT: discuss: diff/patch implementation, Shawn O. Pearce, (Tue Nov 11, 1:13 pm)
Re: JGIT: discuss: diff/patch implementation, Junio C Hamano, (Mon Nov 10, 4:50 pm)
Re: JGIT: discuss: diff/patch implementation, Raimund Bauer, (Tue Nov 11, 6:06 am)
Re: JGIT: discuss: diff/patch implementation, Shawn O. Pearce, (Tue Nov 11, 1:18 pm)
Re: JGIT: discuss: diff/patch implementation, Sverre Rabbelier, (Tue Nov 11, 1:31 pm)
Re: JGIT: discuss: diff/patch implementation, Johannes Schindelin, (Mon Nov 10, 7:37 pm)
Re: JGIT: discuss: diff/patch implementation, Shawn O. Pearce, (Mon Nov 10, 4:52 pm)
Re: JGIT: discuss: diff/patch implementation, Francis Galiegue, (Mon Nov 10, 5:31 pm)
Re: JGIT: discuss: diff/patch implementation, Johannes Schindelin, (Mon Nov 10, 3:46 pm)
Re: JGIT: discuss: diff/patch implementation, Francis Galiegue, (Mon Nov 10, 4:21 pm)
Re: JGIT: discuss: diff/patch implementation, Robin Rosenberg, (Mon Nov 10, 11:56 am)
Re: JGIT: discuss: diff/patch implementation, Francis Galiegue, (Mon Nov 10, 12:16 pm)
Re: JGIT: discuss: diff/patch implementation, Robin Rosenberg, (Mon Nov 10, 12:59 pm)
Re: JGIT: discuss: diff/patch implementation, Francis Galiegue, (Mon Nov 10, 2:11 pm)