2 ms·
I implemented a three direction diff in Python at https://github.com/samsquire/text-diff https://github.com/samsquire/text-diff It's not ready for app or edito
by samsquire 4y ago
I implemented a three direction diff in Python at https://github.com/samsquire/text-diff https://github.com/samsquire/text-diff
It's not ready for app or editor usage, but it's a POC.
Conflict detection is fairly hard to get right, I can detect overlapping ranges to colour the output green or red.
Using this guide to implement the algorithm. https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/ https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm...