gi-ggit-1.0.11: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Structs.ReflogEntry

Description

Represents a reflog entry.

Synopsis

Exported types

newtype ReflogEntry Source #

Memory-managed wrapper type.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getCommitter, getMessage, getNewId, getOldId.

Setters

None.

getCommitter

reflogEntryGetCommitter Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m (Maybe Signature)

Returns: the committer or Nothing.

Gets the committer as a Signature.

getMessage

reflogEntryGetMessage Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m (Maybe Text)

Returns: the message or Nothing.

Gets the message.

getNewId

reflogEntryGetNewId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m (Maybe OId)

Returns: the new oid or Nothing.

Gets the new OId.

getOldId

reflogEntryGetOldId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m (Maybe OId)

Returns: the old oid or Nothing.

Gets the old OId.

ref

reflogEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m (Maybe ReflogEntry)

Returns: the passed in ReflogEntry or Nothing.

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

unref

reflogEntryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ReflogEntry

reflogEntry: a ReflogEntry.

-> m () 

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