Create a new direct reference from an OID.
the reference name
the object id for a direct reference
the first non-tag object's OID, or null
the created git_reference or null on error
See Implementation
Create a new direct reference from an OID.