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

Function operation_kind

atomic-cli/src/commands/op/model.rs:679–708  ·  view source on GitHub ↗
(kind: OperationKind)

Source from the content-addressed store, hash-verified

677}
678
679fn operation_kind(kind: OperationKind) -> &'static str {
680 match kind {
681 OperationKind::Anchor => "anchor",
682 OperationKind::Record => "record",
683 OperationKind::PromoteSnapshot => "promote_snapshot",
684 OperationKind::SplitSnapshot => "split_snapshot",
685 OperationKind::SwitchView => "switch_view",
686 OperationKind::Materialize => "materialize",
687 OperationKind::ImportGitHead => "import_git_head",
688 OperationKind::ImportGitRefs => "import_git_refs",
689 OperationKind::ExportGitRefs => "export_git_refs",
690 OperationKind::ProjectState => "project_state",
691 OperationKind::SynthesizeGit => "synthesize_git",
692 OperationKind::ResurrectBinding => "resurrect_binding",
693 OperationKind::Insert => "insert",
694 OperationKind::Unrecord => "unrecord",
695 OperationKind::Tag => "tag",
696 OperationKind::Recover => "recover",
697 OperationKind::Undo => "undo",
698 OperationKind::Gc => "gc",
699 OperationKind::Restore => "restore",
700 OperationKind::Pull => "pull",
701 OperationKind::Push => "push",
702 OperationKind::Consolidate => "consolidate",
703 OperationKind::RefMapping => "ref_mapping",
704 OperationKind::Repair => "repair",
705 OperationKind::Cutover => "cutover",
706 OperationKind::ReconcileWorkingCopy => "reconcile_working_copy",
707 }
708}
709
710fn verification_state(state: OperationVerificationState) -> &'static str {
711 match state {

Callers 1

fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected