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

Function current_operation

atomic-cli/src/commands/git/guard.rs:952–964  ·  view source on GitHub ↗
(current: &GuardEvidence)

Source from the content-addressed store, hash-verified

950}
951
952fn current_operation(current: &GuardEvidence) -> String {
953 let GuardGitEvidence::Repository(git) = &current.git else {
954 return "unknown".to_string();
955 };
956 if git.operation_markers.is_empty() {
957 git.operation_state.clone()
958 } else {
959 let mut value = String::new();
960 let _ = write!(value, "{}: ", git.operation_state);
961 value.push_str(&git.operation_markers.join(", "));
962 value
963 }
964}
965
966#[cfg(test)]
967mod tests {

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected