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

Function effective_hashes

atomic-cli/tests/it/git_binding_cb6c_test.rs:219–228  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

217}
218
219fn effective_hashes(root: &Path) -> Vec<String> {
220 use atomic_core::types::Base32;
221 let repo = atomic_repository::Repository::open_readonly(root).expect("open atomic");
222 let view = repo.current_view().to_string();
223 repo.effective_history(Some(&view))
224 .expect("effective history")
225 .iter()
226 .map(|entry| entry.hash.to_base32())
227 .collect()
228}
229
230/// The target view's members via the read-only API (hash-authoritative).
231fn view_members(root: &Path, view: &str) -> Vec<String> {

Calls 5

effective_historyMethod · 0.80
current_viewMethod · 0.45
collectMethod · 0.45
iterMethod · 0.45
to_base32Method · 0.45

Tested by

no test coverage detected