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

Function verify_at_detached_ok

atomic-cli/src/commands/git/shim.rs:2656–2658  ·  view source on GitHub ↗

Verify a workspace whose HEAD may be detached (RFC §7.5, CB-8A Draft policy): an attached HEAD follows the branch rule; a detached HEAD aligns when its commit tree exactly equals the desired view's projection.

(root: &Path)

Source from the content-addressed store, hash-verified

2654/// policy): an attached HEAD follows the branch rule; a detached HEAD aligns
2655/// when its commit tree exactly equals the desired view's projection.
2656pub(crate) fn verify_at_detached_ok(root: &Path) -> CliResult<ShimSnapshot> {
2657 verify_at(root)
2658}
2659
2660/// Verify against an already-open repository handle (same-process redb opens
2661/// are exclusive, so callers holding a writable handle must reuse it).

Callers 1

Calls 1

verify_atFunction · 0.85

Tested by

no test coverage detected