Diff3
Diff3[ancestor, first, second] returns a representation of the three-way diff between ancestor and two independently changed versions of ancestor.
Diff3[ancestor, first, second, format] represents the diffs in the indicated format.
Examples
Three-way diff of strings:
Diff3["abc", "ab", "acd"]Please visit the official Wolfram Language Reference for more details.