Function

GgitAnnotatedCommitnew_from_ref

Declaration [src]

GgitAnnotatedCommit*
ggit_annotated_commit_new_from_ref (
  GgitRepository* repository,
  GgitRef* ref,
  GError** error
)

Description [src]

Create a GgitAnnotatedCommit from the given reference.

Parameters

repository GgitRepository
 

The repository.

 The data is owned by the caller of the function.
ref GgitRef
 

The reference to use to lookup the git_annotated_commit.

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

Return value

Returns: GgitAnnotatedCommit
 

A GgitAnnotatedCommit.

 The caller of the function takes ownership of the data, and is responsible for freeing it.