Lookups a reference by its name in this.
The returned Ref must be freed with unref.
| this |
a Repository. |
| name |
the long name for the reference (e.g. HEAD, ref/heads/master, refs/tags/v0.1.0, ...). |
|
the searched reference. |