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

Method sync

rust/src/collaboration/file.rs:489–496  ·  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

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

Source from the content-addressed store, hash-verified

487 /// * `conflict_handler` - Function to call to resolve snapshot conflicts
488 /// * `name_changeset` - Function to call for naming a pushed changeset, if necessary
489 pub fn sync<C: DatabaseConflictHandler, N: NameChangeset>(
490 &self,
491 database: &Database,
492 conflict_handler: C,
493 name_changeset: N,
494 ) -> Result<(), ()> {
495 sync::sync_database(database, self, conflict_handler, name_changeset)
496 }
497
498 /// Completely sync a file, pushing/pulling/merging/applying changes
499 ///

Callers 1

download_databaseMethod · 0.45

Calls 1

sync_databaseFunction · 0.70

Tested by

no test coverage detected