How the comparison works
The tool finds the longest sequence of lines that appear in both texts in the same order. Lines outside that sequence are reported as removed from the original or added in the new version. This is the same idea used by version control systems.