gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.AnnotatedCommit

Contents

Description

Represents an annotated commit object.

Synopsis

Exported types

newtype AnnotatedCommit Source #

Memory-managed wrapper type.

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.