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

Method iter_changes

atomic-repository/src/repository/changes.rs:570–574  ·  view source on GitHub ↗

Iterate over all change hashes stored in the repository. 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 repo.iter_changes() { match result { Ok(hash) => println!("Found chan

(&self)

Source from the content-addressed store, hash-verified

568 /// }
569 /// ```
570 pub fn iter_changes(&self) -> impl Iterator<Item = Result<Hash, RepositoryError>> + '_ {
571 self.change_store
572 .iter_changes()
573 .map(|r| r.map_err(|e| RepositoryError::Database(e.to_string())))
574 }
575
576 /// Find a change by hash prefix.
577 ///

Callers 6

collect_view_change_idsFunction · 0.45
create_view_fromMethod · 0.45
diff_viewsMethod · 0.45
find_change_by_prefixMethod · 0.45
test_repo_iter_changesFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_repo_iter_changesFunction · 0.36