Make the repository HEAD directly point to the Commit.
This behaves like git_repository_set_head_detached()
but takes an
annotated commit, which lets you specify which extended sha syntax
string was specified by a user, allowing for more exact reflog
messages.
See the documentation for git_repository_set_head_detached()
.