Ggit.AnnotatedCommit

Fields

None

Methods

class

new_from_ref (repository, ref)

get_id ()

ref ()

unref ()

Details

class Ggit.AnnotatedCommit

Represents an annotated commit object.

classmethod new_from_ref(repository, ref)
Parameters:
  • repository (Ggit.Repository) – the repository

  • ref (Ggit.Ref) – the reference to use to lookup the git_annotated_commit

Raises:

GLib.Error

Returns:

a Ggit.AnnotatedCommit.

Return type:

Ggit.AnnotatedCommit

Create a Ggit.AnnotatedCommit from the given reference

get_id()
Returns:

the commit ID that the given self refs to or None.

Return type:

Ggit.OId or None

Gets the commit ID that the given self refs to.

ref()
Returns:

a newly allocated Ggit.AnnotatedCommit or None.

Return type:

Ggit.AnnotatedCommit or None

Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.

unref()

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.