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

Function push_unique

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

Source from the content-addressed store, hash-verified

153}
154
155fn push_unique(ops: &mut Vec<DeferredTreeOp>, op: DeferredTreeOp) {
156 if !ops.iter().any(|existing| {
157 existing.change == op.change && existing.inode == op.inode && existing.action == op.action
158 }) {
159 ops.push(op);
160 }
161}
162
163fn remember_op_paths(op: &DeferredTreeOp, paths: &mut HashSet<String>) {
164 if let Some(path) = &op.baseline_path {

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