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

Method require_target_is_current_view

atomic-cli/src/commands/git/stream.rs:704–711  ·  view source on GitHub ↗

Refuse unless the handle's current view is already this importer's target. Incremental span import never selects or switches a view.

(&self, repo: &Repository)

Source from the content-addressed store, hash-verified

702 /// Refuse unless the handle's current view is already this importer's
703 /// target. Incremental span import never selects or switches a view.
704 pub(crate) fn require_target_is_current_view(&self, repo: &Repository) -> CliResult<()> {
705 if self.options.target_view != repo.current_view() {
706 return Err(git_error(
707 "span incremental import requires the current Atomic view to match the Git branch",
708 ));
709 }
710 Ok(())
711 }
712
713 pub(crate) fn import_span_incremental_prevalidated<F>(
714 &self,

Callers 1

run_span_incrementalMethod · 0.80

Calls 2

git_errorFunction · 0.70
current_viewMethod · 0.45

Tested by

no test coverage detected