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

Function view_members

atomic-cli/tests/it/git_binding_cb6c_test.rs:231–239  ·  view source on GitHub ↗

The target view's members via the read-only API (hash-authoritative).

(root: &Path, view: &str)

Source from the content-addressed store, hash-verified

229
230/// The target view's members via the read-only API (hash-authoritative).
231fn view_members(root: &Path, view: &str) -> Vec<String> {
232 use atomic_core::types::Base32;
233 let repo = atomic_repository::Repository::open_readonly(root).expect("open atomic");
234 repo.effective_history(Some(view))
235 .expect("effective history")
236 .iter()
237 .map(|entry| entry.hash.to_base32())
238 .collect()
239}
240
241fn transfer_to_client(publisher: &Path, remote_dir: &Path, client: &Path) {
242 let run_git = |dir: &Path, args: &[&str], context: &str| {

Calls 4

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

Tested by

no test coverage detected