Compute diff and return patches.
The computed patches are also available via the patches property.
List of patches with line numbers