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

Method begin_span_incremental

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

Continue a direct span stream over an unchanged imported prefix, optionally retaining its native `.atomicignore` bootstrap change. The original private stage is reused, not recreated. This deliberately refuses other native changes, inherited members, or a partial prior stage. The supplied baseline tree must be obtained from the pinned Git commit; the repository projection is checked against it un

(
        repo: &'a mut Repository,
        limits: GitStreamLimits,
        replayed: &[(String, Hash)],
        policy: &ConversionPolicy,
        expected_git_tree: &atomic_core::operation::GitObje

Source from the content-addressed store, hash-verified

566 /// operation lock. This method does not change or verify working bytes.
567 /// The CLI does not yet expose this restricted path.
568 pub fn begin_span_incremental(
569 repo: &'a mut Repository,
570 limits: GitStreamLimits,
571 replayed: &[(String, Hash)],
572 policy: &ConversionPolicy,
573 expected_git_tree: &atomic_core::operation::GitObjectId,
574 ) -> Result<Self, RepositoryError> {
575 Self::begin_span_incremental_inner(repo, limits, replayed, &[], policy, expected_git_tree)
576 }
577
578 /// Resume a previously verified private stage using the exact replayed
579 /// staged suffix. No unverified batch or mismatched SHA is reused.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected