lookup_reference_dwim


Description:

public Ref? lookup_reference_dwim (string short_name) throws Error

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.

Parameters:

this

a Repository.

short_name

the short name for the reference (e.g. master, v0.1.0, ...).

Returns:

the searched reference.