Validate the origin against the hashed classification contract.
(&self)
| 102 | |
| 103 | /// Validate the origin against the hashed classification contract. |
| 104 | pub fn validated(&self) -> Result<ChangeOrigin, RepositoryError> { |
| 105 | ChangeOrigin::git_resolution(self.merge_commit.clone(), self.parents.clone()).map_err( |
| 106 | |error| RepositoryError::InvalidOperation { |
| 107 | message: format!("invalid Git resolution origin: {error}"), |
| 108 | }, |
| 109 | ) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /// The hashed classification applied to one synthesized change. |
no test coverage detected