binaryninja::collaboration

Function pull_database

source
pub fn pull_database<C: DatabaseConflictHandler, N: NameChangeset>(
    database: &Database,
    file: &RemoteFile,
    conflict_handler: C,
    name_changeset: N,
) -> Result<usize, ()>
Expand description

Pull updated snapshots from the remote. Merge local changes with remote changes and potentially create a new snapshot for unsaved changes, named via name_changeset.

  • database - Database to pull
  • file - Remote File to pull to
  • conflict_handler - Function to call to resolve snapshot conflicts
  • name_changeset - Function to call for naming a pushed changeset, if necessary