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

Method workspace_repository

libatomic/src/daemon/state.rs:115–120  ·  view source on GitHub ↗

Enter an explicit working-copy boundary inside the blocking request. The caller retains the returned transaction for the whole operation; its ordered graph/workspace locks must not be dropped after reading ID.

(
        &self,
        mode: atomic_repository::WorkspaceTxnMode,
    )

Source from the content-addressed store, hash-verified

113 /// The caller retains the returned transaction for the whole operation;
114 /// its ordered graph/workspace locks must not be dropped after reading ID.
115 pub fn workspace_repository(
116 &self,
117 mode: atomic_repository::WorkspaceTxnMode,
118 ) -> Result<(Repository, atomic_repository::WorkspaceTxn), Status> {
119 self.workspace_repository_for_switch(mode, None)
120 }
121
122 /// The only force recovery allowed here is retrying the exact view whose
123 /// native switch completed before its separate Git projection failed.

Callers 15

split_viewMethod · 0.80
statusMethod · 0.80
list_conflictsMethod · 0.80
add_filesMethod · 0.80
recordMethod · 0.80
remove_filesMethod · 0.80
move_fileMethod · 0.80
restoreMethod · 0.80
reviseMethod · 0.80
insert_changesMethod · 0.80
unrecordMethod · 0.80

Calls 1

Tested by

no test coverage detected