gi-ggit-1.0.12: 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.

Constructors

ReflogEntry (ManagedPtr ReflogEntry) 

Instances

Instances details
Eq ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

GBoxed ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

ManagedPtrNewtype ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

Methods

toManagedPtr :: ReflogEntry -> ManagedPtr ReflogEntry

TypedObject ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

Methods

glibType :: IO GType

HasParentTypes ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

IsGValue (Maybe ReflogEntry) Source #

Convert ReflogEntry to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.ReflogEntry

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe ReflogEntry -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe ReflogEntry)

type ParentTypes ReflogEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ReflogEntry

type ParentTypes ReflogEntry = '[] :: [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.