Only available if the reference is direct (i.e. an object id reference,
not a symbolic one).
To find the OID of a symbolic ref, call git_reference_resolve() and
then this function (or maybe use git_reference_name_to_id() to
directly resolve a reference name all the way through to an OID).
Get the OID pointed to by a direct reference.
Only available if the reference is direct (i.e. an object id reference, not a symbolic one).
To find the OID of a symbolic ref, call git_reference_resolve() and then this function (or maybe use git_reference_name_to_id() to directly resolve a reference name all the way through to an OID).