(old: Option<&GuardEvidence>)
| 943 | } |
| 944 | |
| 945 | fn 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 | |
| 952 | fn current_operation(current: &GuardEvidence) -> String { |
| 953 | let GuardGitEvidence::Repository(git) = ¤t.git else { |