Ensure that `git_patch_from_diff` can return the patch for parsed diffs, not just generate a patch for a generated diff.