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

Method root

atomic-repository/src/repository/synthesis.rs:224–226  ·  view source on GitHub ↗

Construct and validate a root-commit synthesis origin.

(commit: GitObjectId, tree: GitObjectId)

Source from the content-addressed store, hash-verified

222impl GitSynthesisOrigin {
223 /// Construct and validate a root-commit synthesis origin.
224 pub fn root(commit: GitObjectId, tree: GitObjectId) -> Result<Self, RepositoryError> {
225 Self::build(commit, tree, Vec::new(), GitDerivation::Root)
226 }
227
228 /// Construct and validate a single-parent synthesis origin.
229 pub fn first_parent(

Callers

nothing calls this directly

Calls 1

buildFunction · 0.70

Tested by

no test coverage detected