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

Method diff

atomic-cli/src/service/mod.rs:414–434  ·  view source on GitHub ↗

The view-pair Diff, collected (same rendering as the working copy).

(&self, request: pb::DiffRequest)

Source from the content-addressed store, hash-verified

412
413 /// The view-pair Diff, collected (same rendering as the working copy).
414 pub fn diff(&self, request: pb::DiffRequest) -> CliResult<Vec<pb::DiffChunk>> {
415 self.call(move |backend| async move {
416 match backend {
417 Backend::Local(state) => {
418 let stream = services::QueryImpl { state }
419 .diff(Request::new(request))
420 .await?
421 .into_inner();
422 collect_chunks(Box::pin(stream)).await
423 }
424 Backend::Reactor(channel) => {
425 let mut query =
426 pb::repository_query_service_client::RepositoryQueryServiceClient::new(
427 channel,
428 );
429 let stream = query.diff(request).await?.into_inner();
430 collect_streaming(stream).await
431 }
432 }
433 })
434 }
435
436 pub fn list_conflicts(
437 &self,

Callers 1

diff_view_pairFunction · 0.45

Calls 5

collect_chunksFunction · 0.85
pinFunction · 0.85
collect_streamingFunction · 0.85
callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected