Method

GgitRepositoryget_descendant_of

Declaration [src]

gboolean
ggit_repository_get_descendant_of (
  GgitRepository* repository,
  GgitOId* commit,
  GgitOId* ancestor,
  GError** error
)

Description [src]

Check whether com mit is a descendant of ancestor. Note that if this function returns FALSE, an error might have occurred. If so, error will be set appropriately.

Parameters

commit GgitOId
 

The commit.

 The data is owned by the caller of the function.
ancestor GgitOId
 

The ancestor.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if commit is a descendant of ancestor, or FALSE otherwise.