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

Method merge

atomic-cli/src/commands/pull/types.rs:427–434  ·  view source on GitHub ↗

Merge another stats instance into this one.

(&mut self, other: &PullStats)

Source from the content-addressed store, hash-verified

425
426 /// Merge another stats instance into this one.
427 pub fn merge(&mut self, other: &PullStats) {
428 self.changes_downloaded += other.changes_downloaded;
429 self.tags_downloaded += other.tags_downloaded;
430 self.bytes_transferred += other.bytes_transferred;
431 self.changes_skipped += other.changes_skipped;
432 self.changes_failed += other.changes_failed;
433 self.changes_applied += other.changes_applied;
434 }
435}
436
437// PullOutcome

Callers 1

test_pull_stats_mergeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_pull_stats_mergeFunction · 0.36