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

Method collect_insertion_hashes

atomic-core/src/change/change.rs:919–931  ·  view source on GitHub ↗
(
            v: &Insertion<Option<Hash>>,
            table: &mut format_v3::HashDedupTable,
        )

Source from the content-addressed store, hash-verified

917 }
918
919 fn collect_insertion_hashes(
920 v: &Insertion<Option<Hash>>,
921 table: &mut format_v3::HashDedupTable,
922 ) -> Result<(), format_v3::FormatError> {
923 for p in &v.predecessors {
924 collect_position_hash(p, table)?;
925 }
926 for p in &v.successors {
927 collect_position_hash(p, table)?;
928 }
929 collect_position_hash(&v.inode, table)?;
930 Ok(())
931 }
932
933 fn collect_new_edge_hashes(
934 e: &NewEdge<Option<Hash>>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected