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

Function resolve_author

libatomic/src/daemon/services.rs:1155–1165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1153}
1154
1155fn resolve_author() -> Result<Option<Author>, String> {
1156 let store = IdentityStore::open_default().map_err(|e| e.to_string())?;
1157 let Some(identity) = store.get_default().map_err(|e| e.to_string())? else {
1158 return Ok(None);
1159 };
1160 Ok(Some(Author::with_identity(
1161 identity.name.clone(),
1162 identity.email.clone(),
1163 identity.public_key_base32(),
1164 )))
1165}
1166
1167/// Refuse unless the workspace's current view is at the state the caller
1168/// last saw: `expected` names the view's merkle root (or the view snapshot

Callers 1

resolve_author_forFunction · 0.85

Calls 3

public_key_base32Method · 0.80
get_defaultMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected