xdiff library extracted from git.