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

Function record_post_checkout

atomic-cli/src/commands/git/hooks.rs:647–656  ·  view source on GitHub ↗

Append checkout evidence and schedule a separate read-only observer.

(
    root: &Path,
    old_head: &str,
    new_head: &str,
    checkout_flag: &str,
)

Source from the content-addressed store, hash-verified

645
646/// Append checkout evidence and schedule a separate read-only observer.
647pub(crate) fn record_post_checkout(
648 root: &Path,
649 old_head: &str,
650 new_head: &str,
651 checkout_flag: &str,
652) -> CliResult<()> {
653 let scheduled = persist_checkout_event(root, old_head, new_head, checkout_flag)?;
654 warn_if_view_mismatch(root);
655 spawn_deferred_observer(root, &scheduled)
656}
657
658/// CB-12A (RFC §10.3/§11.1): write one authenticated commit-time capture per
659/// active managed agent session while a commit is forming.

Callers 1

runMethod · 0.85

Calls 3

persist_checkout_eventFunction · 0.85
warn_if_view_mismatchFunction · 0.85
spawn_deferred_observerFunction · 0.85

Tested by

no test coverage detected