gi-ggit-1.0.8: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.AnnotatedCommit

Description

Represents an annotated commit object.

Synopsis

Exported types

Methods

Overloaded methods

getId

annotatedCommitGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AnnotatedCommit

annotatedCommit: a AnnotatedCommit.

-> m (Maybe OId)

Returns: the commit ID that the given annotatedCommit refs to or Nothing.

Gets the commit ID that the given annotatedCommit refs to.

newFromRef

annotatedCommitNewFromRef Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepository a, IsRef b) 
=> a

repository: the repository

-> b

ref: the reference to use to lookup the git_annotated_commit

-> m AnnotatedCommit

Returns: a AnnotatedCommit. (Can throw GError)

Create a GgitAnnotatedCommit from the given reference

ref

annotatedCommitRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AnnotatedCommit

annotatedCommit: a AnnotatedCommit.

-> m (Maybe AnnotatedCommit)

Returns: a newly allocated AnnotatedCommit or Nothing.

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

unref

annotatedCommitUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AnnotatedCommit

annotatedCommit: a AnnotatedCommit.

-> m () 

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