Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a reflog entry.
Synopsis
- newtype ReflogEntry = ReflogEntry (ManagedPtr ReflogEntry)
- reflogEntryGetCommitter :: (HasCallStack, MonadIO m) => ReflogEntry -> m (Maybe Signature)
- reflogEntryGetMessage :: (HasCallStack, MonadIO m) => ReflogEntry -> m (Maybe Text)
- reflogEntryGetNewId :: (HasCallStack, MonadIO m) => ReflogEntry -> m (Maybe OId)
- reflogEntryGetOldId :: (HasCallStack, MonadIO m) => ReflogEntry -> m (Maybe OId)
- reflogEntryRef :: (HasCallStack, MonadIO m) => ReflogEntry -> m (Maybe ReflogEntry)
- reflogEntryUnref :: (HasCallStack, MonadIO m) => ReflogEntry -> m ()
Exported types
newtype ReflogEntry Source #
Memory-managed wrapper type.
ReflogEntry (ManagedPtr ReflogEntry) |
Instances
Eq ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry (==) :: ReflogEntry -> ReflogEntry -> Bool # (/=) :: ReflogEntry -> ReflogEntry -> Bool # | |
GBoxed ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry | |
ManagedPtrNewtype ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry toManagedPtr :: ReflogEntry -> ManagedPtr ReflogEntry | |
TypedObject ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry | |
HasParentTypes ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry | |
IsGValue (Maybe ReflogEntry) Source # | Convert |
Defined in GI.Ggit.Structs.ReflogEntry gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ReflogEntry -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ReflogEntry) | |
type ParentTypes ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry |
Methods
Click to display all available methods, including inherited ones
getCommitter
reflogEntryGetCommitter Source #
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m (Maybe Signature) | Returns: the committer or |
Gets the committer as a Signature
.
getMessage
reflogEntryGetMessage Source #
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m (Maybe Text) | Returns: the message or |
Gets the message.
getNewId
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m (Maybe OId) | Returns: the new oid or |
Gets the new OId
.
getOldId
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m (Maybe OId) | Returns: the old oid or |
Gets the old OId
.
ref
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m (Maybe ReflogEntry) | Returns: the passed in |
Atomically increments the reference count of reflogEntry
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> ReflogEntry |
|
-> m () |
Atomically decrements the reference count of reflogEntry
by one.
If the reference count drops to 0, reflogEntry
is freed.