pub fn load_optional_patches(
path: impl AsRef<Path>,
) -> Result<Option<Vec<PatchOptions>>>Expand description
Load an optional patch-list file: a top-level YAML array of patch rows.
A missing file means “no layer” (Ok(None)); any other read failure, a
parse failure, a non-array document, or a non-mapping entry is a hard
error — a present patch file that cannot apply is a misconfiguration and
must fail loud, never be silently skipped.