lookup_reference


Description:

public Ref? lookup_reference (string name) throws Error

Lookups a reference by its name in this.

The returned Ref must be freed with unref.

Parameters:

this

a Repository.

name

the long name for the reference (e.g. HEAD, ref/heads/master, refs/tags/v0.1.0, ...).

Returns:

the searched reference.