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

Function frontier_change

atomic-core/src/apply/change.rs:641–655  ·  view source on GitHub ↗
(root: Hash)

Source from the content-addressed store, hash-verified

639 }
640
641 fn frontier_change(root: Hash) -> Change {
642 let git_oid = |byte| {
643 GitObjectId::new(GitHashAlgorithm::Sha1, vec![byte; 20])
644 .expect("valid SHA-1 test object ID")
645 };
646 Change::empty(ChangeHeader::new("merge resolution"))
647 .with_classification(
648 ChangeKind::Durable,
649 None,
650 ChangeOrigin::git_resolution(git_oid(1), vec![git_oid(2), git_oid(3)])
651 .expect("valid merge origin"),
652 CausalFrontier::new(vec![root]).expect("canonical frontier"),
653 )
654 .expect("valid frontier-bearing change")
655 }
656
657 #[test]
658 fn causal_frontier_verification_proves_transitive_knowledge() {

Calls 1

with_classificationMethod · 0.80