Lookups a reference by its short name in this applying the git precendence rules to the given shorthand to determine which reference the user is referring to.
The returned Ref must be freed with unref.
this |
a Repository. |
short_name |
the short name for the reference (e.g. master, v0.1.0, ...). |
the searched reference. |