Creates patches from diffs, and applies them.