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

Method get_local_view_from_txn

atomic-cli/src/commands/push/command.rs:378–386  ·  view source on GitHub ↗

Get the local view name from retained WorkspaceTxn authority.

(
        &self,
        workspace: &atomic_repository::WorkspaceTxn,
    )

Source from the content-addressed store, hash-verified

376
377 /// Get the local view name from retained WorkspaceTxn authority.
378 fn get_local_view_from_txn(
379 &self,
380 workspace: &atomic_repository::WorkspaceTxn,
381 ) -> CliResult<String> {
382 if let Some(view) = &self.from_view {
383 return Ok(view.clone());
384 }
385 Ok(workspace.view().name.clone())
386 }
387
388 /// Get the remote view name to declare the leaf view under.
389 ///

Callers 1

run_asyncMethod · 0.80

Calls 2

cloneMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected