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

Method materialize_paths

atomic-repository/src/repository/materialize.rs:360–365  ·  view source on GitHub ↗

Materialize only specific files to the working copy. This is used after `insert` operations to only rewrite files that were actually affected by the inserted changes, avoiding a full rematerialization of the entire working copy. Returns the set of `(path, content_hash)` pairs for files that were written, enabling the caller to update FILE_INDEX without re-reading from disk.

(
        &self,
        paths: std::collections::HashSet<String>,
    )

Source from the content-addressed store, hash-verified

358 /// written, enabling the caller to update FILE_INDEX without re-reading
359 /// from disk.
360 pub fn materialize_paths(
361 &self,
362 paths: std::collections::HashSet<String>,
363 ) -> Result<MaterializeResult, RepositoryError> {
364 self.materialize_parallel(Some(paths))
365 }
366
367 /// Sequential materialize for a specific set of paths (fallback).
368 #[allow(dead_code)]

Callers 4

run_view_insertFunction · 0.80
run_tagFunction · 0.80
split_viewMethod · 0.80
switch_viewMethod · 0.80

Calls 1

materialize_parallelMethod · 0.80

Tested by

no test coverage detected