Construct and validate a single-parent synthesis origin.
(
commit: GitObjectId,
tree: GitObjectId,
parent: GitObjectId,
)
| 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 |