Function export_refs

Source
pub fn export_refs(
    mut_repo: &mut MutableRepo,
) -> Result<GitExportStats, GitExportError>
Expand description

Export changes to bookmarks made in the Jujutsu repo compared to our last seen view of the Git repo in mut_repo.view().git_refs().

We ignore changed bookmarks that are conflicted (were also changed in the Git repo compared to our last remembered view of the Git repo). These will be marked conflicted by the next jj git import.

We do not export tags and other refs at the moment, since these aren’t supposed to be modified by JJ. For them, the Git state is considered authoritative.