| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Ggit.Structs.ReflogEntry
Description
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.
Constructors
| ReflogEntry (ManagedPtr ReflogEntry) |
Instances
| Eq ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry | |
| GBoxed ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry | |
| ManagedPtrNewtype ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry Methods 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 Methods 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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m (Maybe Signature) | Returns: the committer or |
Gets the committer as a Signature.
getMessage
reflogEntryGetMessage Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m (Maybe Text) | Returns: the message or |
Gets the message.
getNewId
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m (Maybe OId) | Returns: the new oid or |
Gets the new OId.
getOldId
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m (Maybe OId) | Returns: the old oid or |
Gets the old OId.
ref
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m () |
Atomically decrements the reference count of reflogEntry by one.
If the reference count drops to 0, reflogEntry is freed.