Method

GgitCommitget_nth_ancestor

Declaration [src]

GgitCommit*
ggit_commit_get_nth_ancestor (
  GgitCommit* commit,
  guint n,
  GError** error
)

Description [src]

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 commit.

Parameters

n guint
 

The requested ancestor.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GgitCommit
 

The n ancestor commit.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.