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

Method finish

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

Prove the actual target projection before committing its references. This certifies the tip only, not every historical intermediate state.

(
        self,
        project: &ProjectTree,
        proof: &VerifiedProspectiveEquivalence,
    )

Source from the content-addressed store, hash-verified

967 /// Prove the actual target projection before committing its references.
968 /// This certifies the tip only, not every historical intermediate state.
969 pub fn finish(
970 self,
971 project: &ProjectTree,
972 proof: &VerifiedProspectiveEquivalence,
973 ) -> Result<GitStreamOutcome, RepositoryError> {
974 self.finish_with_guard(project, proof, || Ok(()))
975 }
976
977 /// Check an external observation while holding the operation lock before
978 /// preparing the final promotion. A failed check leaves the staged changes

Calls 1

finish_with_guardMethod · 0.80