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