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

Function refresh_import_mapping

atomic-cli/src/commands/git/shim.rs:2067–2069  ·  view source on GitHub ↗

Refresh the view's ref mapping after a successful Git→Atomic import (the import observed Git's new tip and imported it into the view). No verified export happened: the previous export binding is preserved (CB-10A review R4 — only a verified export transition binds the export state).

(root: &Path, snapshot: &ShimSnapshot)

Source from the content-addressed store, hash-verified

2065/// export happened: the previous export binding is preserved (CB-10A review
2066/// R4 — only a verified export transition binds the export state).
2067fn refresh_import_mapping(root: &Path, snapshot: &ShimSnapshot) -> CliResult<()> {
2068 refresh_import_mapping_budgeted(root, snapshot, ReconcileEffectBudget::Command)
2069}
2070
2071/// The mapping refresh under an explicit effect budget: the metadata-only
2072/// daemon defers instead of running recovery inside the writable open.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected