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

Function checkpoint_branch

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

Source from the content-addressed store, hash-verified

933}
934
935fn checkpoint_branch(old: Option<&GuardEvidence>) -> Option<String> {
936 let GuardGitEvidence::Repository(git) = &old?.git else {
937 return None;
938 };
939 git.head
940 .symref()?
941 .strip_prefix("refs/heads/")
942 .map(str::to_string)
943}
944
945fn checkpoint_oid(old: Option<&GuardEvidence>) -> Option<String> {
946 let GuardGitEvidence::Repository(git) = &old?.git else {

Callers 1

remediationFunction · 0.85

Calls 1

symrefMethod · 0.45

Tested by

no test coverage detected