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

Function refresh_import_mapping_budgeted

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

The mapping refresh under an explicit effect budget: the metadata-only daemon defers instead of running recovery inside the writable open.

(
    root: &Path,
    snapshot: &ShimSnapshot,
    budget: ReconcileEffectBudget,
)

Source from the content-addressed store, hash-verified

2071/// The mapping refresh under an explicit effect budget: the metadata-only
2072/// daemon defers instead of running recovery inside the writable open.
2073fn refresh_import_mapping_budgeted(
2074 root: &Path,
2075 snapshot: &ShimSnapshot,
2076 budget: ReconcileEffectBudget,
2077) -> CliResult<()> {
2078 let repo = Repository::open_with_budget(root, budget).map_err(CliError::from)?;
2079 let working_copy = repo.require_working_copy_id().map_err(CliError::from)?;
2080 let git = open_git(root)?;
2081 super::ref_mapping::refresh_mapping_observation(
2082 &repo,
2083 working_copy,
2084 &git,
2085 &snapshot.view,
2086 None,
2087 None,
2088 )
2089}
2090
2091#[derive(Clone, Copy, Debug, Eq, PartialEq)]
2092pub(crate) enum CheckpointRefresh {

Callers 2

refresh_import_mappingFunction · 0.85

Calls 3

open_gitFunction · 0.70

Tested by

no test coverage detected