Ggit.AnnotatedCommit¶
Fields¶
None
Methods¶
class  | 
  | 
  | 
|
  | 
|
  | 
Details¶
- class Ggit.AnnotatedCommit¶
 Represents an annotated commit object.
- classmethod new_from_ref(repository, ref)¶
 - Parameters:
 repository (
Ggit.Repository) – the repositoryref (
Ggit.Ref) – the reference to use to lookup the git_annotated_commit
- Raises:
 - Returns:
 - Return type:
 
Create a
Ggit.AnnotatedCommitfrom the given reference
- get_id()¶
 - 
Gets the commit ID that the given self refs to.
 
- ref()¶
 - Returns:
 a newly allocated
Ggit.AnnotatedCommitorNone.- Return type:
 
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.