Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I implemented a three direction diff in Python at 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...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: