Bibliarij
Bibliarij

Reputation: 43

how to get chunks in diff3 algorithm implementation

I'm trying to implement diff3 algorithm and currently stuck at chunks creation stage. I already know how to get LCS between original file and "other" file and LCS between original file and "my" file. Which steps need to do to get chunks?

Upvotes: 1

Views: 108

Answers (1)

Bert Huijben
Bert Huijben

Reputation: 19612

I don't think this really answers your question, but Subversion implements this layering exactly as you describe here. It follows the theory quite closely, so you might be able to re-use some pieces.

See http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/

Upvotes: 0

Related Questions