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