Resume a previously verified private stage using the exact replayed staged suffix. No unverified batch or mismatched SHA is reused.
(
repo: &'a mut Repository,
limits: GitStreamLimits,
replayed: &[(String, Hash)],
staged: &[(String, Hash)],
policy: &ConversionPolicy,
expected_git_tre
| 578 | /// Resume a previously verified private stage using the exact replayed |
| 579 | /// staged suffix. No unverified batch or mismatched SHA is reused. |
| 580 | pub fn resume_span_incremental( |
| 581 | repo: &'a mut Repository, |
| 582 | limits: GitStreamLimits, |
| 583 | replayed: &[(String, Hash)], |
| 584 | staged: &[(String, Hash)], |
| 585 | policy: &ConversionPolicy, |
| 586 | expected_git_tree: &atomic_core::operation::GitObjectId, |
| 587 | ) -> Result<Self, RepositoryError> { |
| 588 | if staged.is_empty() { |
| 589 | return Err(invalid( |
| 590 | "resuming an incremental span stage requires staged changes", |
| 591 | )); |
| 592 | } |
| 593 | Self::begin_span_incremental_inner( |
| 594 | repo, |
| 595 | limits, |
| 596 | replayed, |
| 597 | staged, |
| 598 | policy, |
| 599 | expected_git_tree, |
| 600 | ) |
| 601 | } |
| 602 | |
| 603 | fn begin_span_incremental_inner( |
| 604 | repo: &'a mut Repository, |