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

Function plan_entry

atomic-repository/src/repository/adoption.rs:3456–3466  ·  view source on GitHub ↗
(path: &[u8], bytes: &[u8])

Source from the content-addressed store, hash-verified

3454 use atomic_core::types::SetId;
3455
3456 fn plan_entry(path: &[u8], bytes: &[u8]) -> RepositoryEntry {
3457 RepositoryEntry::new(
3458 RepoPath::from_bytes(path).unwrap(),
3459 bytes.to_vec(),
3460 0o644,
3461 InodeKind::Regular,
3462 None,
3463 ManifestDisposition::Included,
3464 )
3465 .unwrap()
3466 }
3467
3468 fn plan_tree(entries: Vec<RepositoryEntry>) -> ProjectTree {
3469 let policy = ConversionPolicy::new(GitHashAlgorithm::Sha1);

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected