pub fn apply_patch_chain<F>(
patches: &[Patch],
get_payload_blob: F,
) -> Result<FileTree, ApplyError>Expand description
Apply a chain of patches (from oldest to newest) to produce a final FileTree.
The patches should be in application order (root first, tip last). This function applies each patch sequentially, threading the FileTree through each transformation.
ยงArguments
patches- Ordered list of patches to apply (oldest first)get_payload_blob- Function to resolve patch payload to CAS hash