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

Method compute_push_delta

atomic-remote/src/sync.rs:755–763  ·  view source on GitHub ↗

Compute a push delta for a given view. # Arguments `view` - The view to push to `local_hashes` - Hashes present in the local repository `local_changes` - All changes in the local view (ordered) that are candidates for upload

(
        &mut self,
        view: &str,
        local_hashes: &HashSet<String>,
        local_changes: &[Node],
    )

Source from the content-addressed store, hash-verified

753 /// * `local_changes` - All changes in the local view (ordered)
754 /// that are candidates for upload
755 pub async fn compute_push_delta(
756 &mut self,
757 view: &str,
758 local_hashes: &HashSet<String>,
759 local_changes: &[Node],
760 ) -> RemoteResult<PushDelta> {
761 let delta = self.compute_delta(view, local_hashes).await?;
762 Ok(delta.into_push_delta(local_changes))
763 }
764}
765
766// Tests

Callers

nothing calls this directly

Calls 2

compute_deltaMethod · 0.80
into_push_deltaMethod · 0.80

Tested by

no test coverage detected