cargo::sources::git::utils

Function reset

Source
fn reset(
    repo: &Repository,
    obj: &Object<'_>,
    gctx: &GlobalContext,
) -> CargoResult<()>
Expand description

git reset --hard to the given obj for the repo.

The obj is a commit-ish to which the head should be moved.