()
| 1153 | } |
| 1154 | |
| 1155 | fn 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 |
no test coverage detected