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

Method first_parent

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

Construct and validate a single-parent synthesis origin.

(
        commit: GitObjectId,
        tree: GitObjectId,
        parent: GitObjectId,
    )

Source from the content-addressed store, hash-verified

227
228 /// Construct and validate a single-parent synthesis origin.
229 pub fn first_parent(
230 commit: GitObjectId,
231 tree: GitObjectId,
232 parent: GitObjectId,
233 ) -> Result<Self, RepositoryError> {
234 Self::build(commit, tree, vec![parent], GitDerivation::FirstParent)
235 }
236
237 /// Construct and validate an origin with an explicit derivation
238 /// (CB-9B: empty commits carry `Derivation::EmptyCommit` with their

Callers

nothing calls this directly

Calls 1

buildFunction · 0.70

Tested by

no test coverage detected