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

Function binding_id

atomic-cli/tests/it/git_binding_cb6b_test.rs:95–100  ·  view source on GitHub ↗
(root: &Path, _home: &Path)

Source from the content-addressed store, hash-verified

93}
94
95fn binding_id(root: &Path, _home: &Path) -> String {
96 let repo = atomic_repository::Repository::open_readonly(root).expect("open atomic");
97 let ids = repo.binding_ids().expect("binding ids");
98 assert!(!ids.is_empty(), "a binding must be stored");
99 ids[0].to_hex()
100}
101
102#[allow(dead_code)]
103fn all_git_objects(root: &Path) -> Vec<u8> {

Calls 2

binding_idsMethod · 0.80
to_hexMethod · 0.45

Tested by

no test coverage detected