Resolve an author through the configured identity map (§5.5).
(
map: &ProjectionIdentityMap,
name: &str,
email: &str,
agent_did: Option<String>,
)
| 144 | impl ProjectionAuthor { |
| 145 | /// Resolve an author through the configured identity map (§5.5). |
| 146 | pub fn resolve( |
| 147 | map: &ProjectionIdentityMap, |
| 148 | name: &str, |
| 149 | email: &str, |
| 150 | agent_did: Option<String>, |
| 151 | ) -> Self { |
| 152 | Self { |
| 153 | name: name.to_string(), |
| 154 | email: email.to_string(), |
| 155 | did: map.did_for_email(email), |
| 156 | agent_did, |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | /// How a projected commit attaches to Git history (RFC §8.2). |
no test coverage detected