Function jj_lib::git::import_head

source ·
pub fn import_head(mut_repo: &mut MutableRepo) -> Result<(), GitImportError>
Expand description

Imports HEAD@git from the underlying Git repo.

Unlike import_refs(), the old HEAD branch is not abandoned because HEAD move doesn’t always mean the old HEAD branch has been rewritten.

Unlike reset_head(), this function doesn’t move the working-copy commit to the child of the new HEAD@git revision.