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

Method compute_push_delta

atomic-remote/src/sync.rs:794–802  ·  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

792 /// * `local_changes` - All changes in the local view (ordered)
793 /// that are candidates for upload
794 pub async fn compute_push_delta(
795 &mut self,
796 view: &str,
797 local_hashes: &HashSet<String>,
798 local_changes: &[Node],
799 ) -> RemoteResult<PushDelta> {
800 let delta = self.compute_delta(view, local_hashes).await?;
801 Ok(delta.into_push_delta(local_changes))
802 }
803}
804
805// Tests

Callers

nothing calls this directly

Calls 2

compute_deltaMethod · 0.80
into_push_deltaMethod · 0.80

Tested by

no test coverage detected