pub fn reset_head(
mut_repo: &mut MutableRepo,
wc_commit: &Commit,
) -> Result<(), GitResetHeadError>
Expand description
Sets Git HEAD to the parent of the given working-copy commit and resets the Git index.
pub fn reset_head(
mut_repo: &mut MutableRepo,
wc_commit: &Commit,
) -> Result<(), GitResetHeadError>
Sets Git HEAD to the parent of the given working-copy commit and resets the Git index.