Function import_head

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

Imports HEAD 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 revision.