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

Method change_objects_from_pack

atomic-cli/src/commands/clone/command.rs:546–552  ·  view source on GitHub ↗

Index a pack's change objects into `base32 hash → bytes` for local save.

(pack: &SyncPack)

Source from the content-addressed store, hash-verified

544
545 /// Index a pack's change objects into `base32 hash → bytes` for local save.
546 fn change_objects_from_pack(pack: &SyncPack) -> HashMap<String, Vec<u8>> {
547 pack.objects
548 .iter()
549 .filter(|o| o.family == ObjectFamily::Change)
550 .map(|o| (o.key.clone(), o.bytes.clone()))
551 .collect()
552 }
553
554 /// Ingest a pack's provenance graphs and attestations, reporting counts.
555 ///

Callers

nothing calls this directly

Calls 3

collectMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected