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

Method resume_span_incremental

atomic-repository/src/repository/git_stream.rs:580–601  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

invalidFunction · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected