changeset icon indicating copy to clipboard operation
changeset copied to clipboard

String diff/patching

Open mightyiam opened this issue 11 years ago • 1 comments

@eugeneware would you be happy if I introduced a PR with string diff/patching, using probably diff?

mightyiam avatar Oct 29 '14 21:10 mightyiam

My preference would be to use something based on operational transforms if possible. Something like https://github.com/marcelklehr/diff_match_patch that is used by https://github.com/marcelklehr/changesets.

That way we would be able to be able to resolve concurrent changes.

But in any case, it should be an option that should be passed through like { stringDiff: true } or something like that. I wouldn't want it to be the default.

eugeneware avatar Oct 30 '14 00:10 eugeneware