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

Function checkpoint_oid

atomic-cli/src/commands/git/guard.rs:945–950  ·  view source on GitHub ↗
(old: Option<&GuardEvidence>)

Source from the content-addressed store, hash-verified

943}
944
945fn checkpoint_oid(old: Option<&GuardEvidence>) -> Option<String> {
946 let GuardGitEvidence::Repository(git) = &old?.git else {
947 return None;
948 };
949 git.head.oid().map(str::to_string)
950}
951
952fn current_operation(current: &GuardEvidence) -> String {
953 let GuardGitEvidence::Repository(git) = &current.git else {

Callers 1

remediationFunction · 0.85

Calls 1

oidMethod · 0.45

Tested by

no test coverage detected