Limitations

edit
  • The built-in output format is the unified diff. HTML, colored or side-by-side output is up to you; see Displaying a diff for an example.
  • Patches are text patches in the unified format. UnifiedDiff.Parse ignores the extended headers of git (renames, modes, binary patches) and does not unquote file names. A hunk applies only when its context matches exactly: there is no fuzz factor, only an offset search. See Patches.
  • Merges do not refine conflicts. TextMerge.Merge reports a conflict for the whole changed region, even when both sides share lines at its edges. See Merging.
  • Moves are detected by ComputeDiff only. A hierarchical diff does not detect moves, and a moved block must be equal under the comparison options: a block moved and changed is a deletion and an insertion.
  • Culture-aware comparisons need ICU. In invariant globalization mode, CompareOptions and Culture compare ordinally. See Culture-aware comparison.
  • Texts are strings. Both texts are read into memory as string; there is no streaming or file API.