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

Method diff

atomic-cli/src/service/mod.rs:412–432  ·  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

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

Callers 1

diff_view_pairFunction · 0.45

Calls 4

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

Tested by

no test coverage detected