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

Function reconcile_after_fetch

libatomic/src/identity_transport.rs:84–93  ·  view source on GitHub ↗

Fetch the remote's project identity and reconcile it into the local repository. Call after a successful clone/pull fetch.

(
    repo: &Repository,
    remote: &HttpRemote,
)

Source from the content-addressed store, hash-verified

82/// Fetch the remote's project identity and reconcile it into the local
83/// repository. Call after a successful clone/pull fetch.
84pub async fn reconcile_after_fetch(
85 repo: &Repository,
86 remote: &HttpRemote,
87) -> Result<ReconcileReport, RepositoryError> {
88 let fetched = fetch_identity(remote).await?;
89 match &fetched {
90 None => Ok(ReconcileReport::default()),
91 Some(document) => apply_fetched_identity(repo, document),
92 }
93}
94
95/// Fetch-only half of [`reconcile_after_fetch`], for transports that must keep
96/// repository writes off the async context (the daemon runs them inside

Callers 2

run_asyncMethod · 0.85
run_asyncMethod · 0.85

Calls 2

fetch_identityFunction · 0.85
apply_fetched_identityFunction · 0.85

Tested by

no test coverage detected