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:2117–2133  ·  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

2115/// The mapping refresh under an explicit effect budget: the metadata-only
2116/// daemon defers instead of running recovery inside the writable open.
2117fn refresh_import_mapping_budgeted(
2118 root: &Path,
2119 snapshot: &ShimSnapshot,
2120 budget: ReconcileEffectBudget,
2121) -> CliResult<()> {
2122 let repo = Repository::open_with_budget(root, budget).map_err(CliError::from)?;
2123 let working_copy = repo.require_working_copy_id().map_err(CliError::from)?;
2124 let git = open_git(root)?;
2125 super::ref_mapping::refresh_mapping_observation(
2126 &repo,
2127 working_copy,
2128 &git,
2129 &snapshot.view,
2130 None,
2131 None,
2132 )
2133}
2134
2135#[derive(Clone, Copy, Debug, Eq, PartialEq)]
2136pub(crate) enum CheckpointRefresh {

Callers 2

refresh_import_mappingFunction · 0.85

Calls 3

open_gitFunction · 0.70

Tested by

no test coverage detected