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

Method resolve

atomic-repository/src/repository/projection_commit.rs:146–158  ·  view source on GitHub ↗

Resolve an author through the configured identity map (§5.5).

(
        map: &ProjectionIdentityMap,
        name: &str,
        email: &str,
        agent_did: Option<String>,
    )

Source from the content-addressed store, hash-verified

144impl 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).

Callers 1

observe_metadata_headFunction · 0.45

Calls 1

did_for_emailMethod · 0.45

Tested by

no test coverage detected