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)
| 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, |
no test coverage detected