Skip to main content

materialize

Function materialize 

Source
pub async fn materialize<S: CommitStore + ?Sized>(
    store: &S,
    head: CommitId,
) -> Result<MaterializedContext>
Expand description

Walks the first-parent chain from head back to the root, applying deltas in order (oldest first) and folding compaction ops as it goes.

First-parent walk is deliberate: it is what lets a merge commit’s materialized view be defined purely by parent order (see merge’s RecordOnly/PreferOther strategies in milestone 6) without any special casing here.