get_nth_ancestor


Description:

public Commit? get_nth_ancestor (uint n) throws Error

Gets the commit object that is the n-th generation ancestor of the named commit object, following only the first parents.

Passing 0 to the n parameter returns another instance of this .

Parameters:

this

a Commit.

n

the requested ancestor.

Returns:

the n ancestor commit.




2022 vala-language.org