Function jj_lib::git::export_refs

source ·
pub fn export_refs(
    mut_repo: &mut MutableRepo,
    git_repo: &Repository
) -> Result<Vec<RefName>, GitExportError>
Expand description

Export changes to branches made in the Jujutsu repo compared to our last seen view of the Git repo in mut_repo.view().git_refs(). Returns a list of refs that failed to export.

We ignore changed branches 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.