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

Function materialize_prefix

atomic-core/src/output/repo/repository/mod.rs:304–322  ·  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

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

Callers

nothing calls this directly

Calls 2

materialize_viewFunction · 0.85
prefixMethod · 0.45

Tested by

no test coverage detected