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

Function resolve_author

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

Source from the content-addressed store, hash-verified

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