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

Function push_claim_entry

atomic-repository/src/repository/name_resolution.rs:857–870  ·  view source on GitHub ↗
(
    entries: &mut Vec<PathClaimEntry>,
    path: &str,
    event_change: NodeId,
    operation_index: u32,
    kind: PathClaimKind,
    state: PathClaimState,
    claim: PathClaimId,
)

Source from the content-addressed store, hash-verified

855}
856
857fn push_claim_entry(
858 entries: &mut Vec<PathClaimEntry>,
859 path: &str,
860 event_change: NodeId,
861 operation_index: u32,
862 kind: PathClaimKind,
863 state: PathClaimState,
864 claim: PathClaimId,
865) {
866 entries.push(PathClaimEntry::new(
867 path,
868 PathClaimEvent::new(event_change, operation_index, kind, state, claim),
869 ));
870}
871
872fn next_operation_index(index: &mut u32) -> Result<u32, RepositoryError> {
873 let current = *index;

Callers 2

add_insertion_claimsFunction · 0.85
add_edge_update_claimsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected