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

Method new

atomic-repository/src/repository/switch.rs:121–132  ·  view source on GitHub ↗
(
        repository: &'a Repository,
        operation_lock: &'a super::locks::WorkingCopyOperationLockGuard,
        operation: Operation,
    )

Source from the content-addressed store, hash-verified

119
120impl<'a> SwitchMaterializationExecutor<'a> {
121 pub(super) fn new(
122 repository: &'a Repository,
123 operation_lock: &'a super::locks::WorkingCopyOperationLockGuard,
124 operation: Operation,
125 ) -> Self {
126 Self {
127 repository,
128 operation_lock,
129 operation,
130 switch_removal_scope: None,
131 }
132 }
133
134 fn with_switch_removal_scope(mut self, paths: HashSet<String>) -> Self {
135 self.switch_removal_scope = Some(paths);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected