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

Method iter_changes

atomic-repository/src/changestore/mod.rs:534–536  ·  view source on GitHub ↗

Iterate over all change hashes stored on disk. This scans the changes directory and yields the hash of each change file found. The iteration order is not guaranteed. # Performance This method reads the filesystem and should be used sparingly on repositories with many changes. # Example ```rust,ignore for result in store.iter_changes() { match result { Ok(hash) => println!("Found change: {}",

(&self)

Source from the content-addressed store, hash-verified

532 /// }
533 /// ```
534 pub fn iter_changes(&self) -> impl Iterator<Item = ChangeStoreResult<Hash>> + '_ {
535 ChangeIterator::new(&self.changes_dir)
536 }
537
538 /// Count the number of changes stored on disk.
539 ///

Callers 11

check_can_unrecordFunction · 0.45
count_changesMethod · 0.45
test_iter_changes_emptyFunction · 0.45
test_iter_changesFunction · 0.45
get_view_changesFunction · 0.45
get_changes_up_to_seqFunction · 0.45
get_change_at_sequenceFunction · 0.45
logFunction · 0.45
get_change_at_sequenceFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_iter_changes_emptyFunction · 0.36
test_iter_changesFunction · 0.36