Branch references.
A map of references.
The repository HEAD.
The master branch.
Is the given reference the HEAD ?
Compute the head contents. The result is either the hex representation of the SHA or something like ref: <ref> if the SHA has already a reference pointing to it.
Check if a reference can be stored on disk properly.