get_head


Description:

public Ref? get_head () throws Error

Get and resolves the current HEAD reference of the repository.

Note that the returned ref is already resolved (if HEAD is symbolic). If you want to retrieve the symbolic ref called HEAD, then use lookup_reference instead.

Parameters:

this

a Repository.

Returns:

a Ref




2022 vala-language.org