pub fn reset_index_to_commit(
worktree_root: impl AsRef<Path>,
git_dir: impl AsRef<Path>,
format: ObjectFormat,
commit_oid: &ObjectId,
) -> Result<RestoreResult>pub fn reset_index_to_commit(
worktree_root: impl AsRef<Path>,
git_dir: impl AsRef<Path>,
format: ObjectFormat,
commit_oid: &ObjectId,
) -> Result<RestoreResult>