GitRepo.setHeadDetached

Sets the repository's HEAD to the given commit object id.

When successful, the HEAD will be in a detached state.

If the provided oid is not found or cannot be resolved to a commit, the repository is left unaltered and an exception is thrown.

struct GitRepo
void
setHeadDetached
(
const(GitOid) oid
)

Meta