MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / sync_with_progress

Method sync_with_progress

rust/src/collaboration/file.rs:504–518  ·  view source on GitHub ↗

Completely sync a file, pushing/pulling/merging/applying changes `bv_or_db` - Binary view or database to sync with `conflict_handler` - Function to call to resolve snapshot conflicts `name_changeset` - Function to call for naming a pushed changeset, if necessary `progress` - Function to call for progress updates

(
        &self,
        database: &Database,
        conflict_handler: C,
        name_changeset: N,
        progress: P,
    )

Source from the content-addressed store, hash-verified

502 /// * `name_changeset` - Function to call for naming a pushed changeset, if necessary
503 /// * `progress` - Function to call for progress updates
504 pub fn sync_with_progress<C: DatabaseConflictHandler, P: ProgressCallback, N: NameChangeset>(
505 &self,
506 database: &Database,
507 conflict_handler: C,
508 name_changeset: N,
509 progress: P,
510 ) -> Result<(), ()> {
511 sync::sync_database_with_progress(
512 database,
513 self,
514 conflict_handler,
515 name_changeset,
516 progress,
517 )
518 }
519
520 /// Pull updated snapshots from the remote. Merge local changes with remote changes and
521 /// potentially create a new snapshot for unsaved changes, named via name_changeset.

Callers 1

Calls 1

Tested by

no test coverage detected