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

Function push_unique

atomic-repository/src/repository/deferred_tree.rs:437–443  ·  view source on GitHub ↗
(ops: &mut Vec<DeferredTreeOp>, op: DeferredTreeOp)

Source from the content-addressed store, hash-verified

435}
436
437fn push_unique(ops: &mut Vec<DeferredTreeOp>, op: DeferredTreeOp) {
438 if !ops.iter().any(|existing| {
439 existing.change == op.change && existing.inode == op.inode && existing.action == op.action
440 }) {
441 ops.push(op);
442 }
443}
444
445fn external_position(
446 change_hash: Hash,

Callers 3

push_delete_for_pathFunction · 0.85
push_occupant_baselineFunction · 0.85
collect_tree_opsFunction · 0.85

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected