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

Method resolve_single_path_claim

atomic-repository/src/repository/record.rs:1472–1478  ·  view source on GitHub ↗

The exact alive structural path claim for `path` on `view_name`, or `None` when the projection does not bind it. Refuses contested state: a path with zero causally maximal alive claims is unbound, and a path with several is ambiguous — a structural move must never route through an unproven source claim (the same authority rule the native `plan_file_moves` enforces via `source.claims.len() != 1`).

(
        &self,
        view_name: &str,
        path: &str,
    )

Source from the content-addressed store, hash-verified

1470 ///
1471 /// Returns an error message when projection or claim reduction fails.
1472 pub fn resolve_single_path_claim(
1473 &self,
1474 view_name: &str,
1475 path: &str,
1476 ) -> Result<Option<(atomic_core::pristine::PathClaimId, Inode, Position<NodeId>)>, String> {
1477 self.resolve_single_path_claim_excluding(view_name, path, &[])
1478 }
1479
1480 fn resolve_single_path_claim_excluding(
1481 &self,