Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

3-way merge in JavaScript or PHP [closed]

Does anyone know of an Open Source three-way merge implementation in JavaScript or PHP? I want to merge plain text files without the need to rely on any server side binaries.

I found a few solutions for creating diffs, but no merge implementations.

like image 540
Andreas Gohr Avatar asked Jun 22 '26 06:06

Andreas Gohr


1 Answers

Not exactly three-way merge, but Google's "Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text". And the implementation is available in Java, JavaScript, C++, C#, Lua and Python.

like image 128
user207825 Avatar answered Jun 24 '26 19:06

user207825



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!