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

Function projected

atomic-cli/tests/it/git_import_cb9c_test.rs:175–188  ·  view source on GitHub ↗
(
    repo: &atomic_repository::Repository,
    path: &str,
)

Source from the content-addressed store, hash-verified

173}
174
175fn projected(
176 repo: &atomic_repository::Repository,
177 path: &str,
178) -> atomic_core::output::InodeMaterialization {
179 let projection = repo
180 .projected_attributes_on_view_excluding(path, "main", &[])
181 .unwrap()
182 .unwrap_or_else(|| panic!("no projected attributes for {path}"));
183 assert!(
184 !projection.is_conflicted(),
185 "path {path} must not have conflicted attribute registers"
186 );
187 projection.materialization
188}
189
190/// Stable, dependency-free digest of a file's raw bytes: FNV-1a over the
191/// bytes plus the byte length (empty digest when absent).

Calls 2

unwrapMethod · 0.45

Tested by

no test coverage detected