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

Method apply_stash

atomic-cli/src/service/mod.rs:699–715  ·  view source on GitHub ↗
(&self, request: pb::ApplyStashRequest)

Source from the content-addressed store, hash-verified

697 }
698
699 pub fn apply_stash(&self, request: pb::ApplyStashRequest) -> CliResult<pb::ApplyStashResponse> {
700 self.call(move |backend| async move {
701 match backend {
702 Backend::Local(state) => {
703 services::MutationImpl { state }
704 .apply_stash(Request::new(request))
705 .await
706 .map(|response| response.into_inner())
707 }
708 Backend::Reactor(channel) => {
709 let mut mutation =
710 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
711 mutation.apply_stash(request).await.map(|response| response.into_inner())
712 }
713 }
714 })
715 }
716
717 pub fn list_stashes(
718 &self,

Callers

nothing calls this directly

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected