pub async fn patch_file(path: &Path, patch: &str) -> Result<(), PatchFileError>
Apply a unified diff patch to a file.