Function cargo::sources::git::utils::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.