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

Method new

atomic-cli/src/commands/git/guard.rs:84–90  ·  view source on GitHub ↗
(root: &'a Path, operation: GuardOperation)

Source from the content-addressed store, hash-verified

82
83impl<'a> GuardRequest<'a> {
84 pub(crate) fn new(root: &'a Path, operation: GuardOperation) -> Self {
85 Self {
86 root,
87 operation,
88 wip: WipPolicy::None,
89 }
90 }
91
92 pub(crate) fn with_wip(mut self, workspace: &'a str, operation_id: &'a str) -> Self {
93 self.wip = WipPolicy::CaptureOrReuse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected