MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / materialize_prefix

Function materialize_prefix

atomic-core/src/output/repo/repository/mod.rs:301–319  ·  view source on GitHub ↗

Materialize a specific prefix of the repository to the working copy. Convenience function that sets the prefix option.

(
    txn: &T,
    changes: &C,
    working_copy: &W,
    prefix: &str,
)

Source from the content-addressed store, hash-verified

299///
300/// Convenience function that sets the prefix option.
301pub fn materialize_prefix<T, C, W>(
302 txn: &T,
303 changes: &C,
304 working_copy: &W,
305 prefix: &str,
306) -> Result<MaterializeResult, MaterializeError<W::Error>>
307where
308 T: TreeTxnT + GraphTxnT,
309 C: ChangeStore,
310 W: WorkingCopy,
311 W::Writer: std::io::Write,
312{
313 materialize_view(
314 txn,
315 changes,
316 working_copy,
317 MaterializeOptions::new().prefix(prefix),
318 )
319}

Callers

nothing calls this directly

Calls 2

materialize_viewFunction · 0.85
prefixMethod · 0.45

Tested by

no test coverage detected