Method

GgitRepositorylookup_commit

Declaration [src]

GgitCommit*
ggit_repository_lookup_commit (
  GgitRepository* repository,
  GgitOId* oid,
  GError** error
)

Description [src]

Lookups a branch by its name in a repository.

Parameters

oid GgitOId
 

A GgitOId.

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

Return value

Returns: GgitCommit
 

A GgitCommit pointer.

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