| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Structs.ReflogEntry
Description
Represents a reflog entry.
- newtype ReflogEntry = ReflogEntry (ManagedPtr ReflogEntry)
- noReflogEntry :: Maybe ReflogEntry
- reflogEntryGetCommitter :: (HasCallStack, MonadIO m) => ReflogEntry -> m Signature
- reflogEntryGetMessage :: (HasCallStack, MonadIO m) => ReflogEntry -> m Text
- reflogEntryGetNewId :: (HasCallStack, MonadIO m) => ReflogEntry -> m OId
- reflogEntryGetOldId :: (HasCallStack, MonadIO m) => ReflogEntry -> m OId
- reflogEntryRef :: (HasCallStack, MonadIO m) => ReflogEntry -> m ReflogEntry
- reflogEntryUnref :: (HasCallStack, MonadIO m) => ReflogEntry -> m ()
Exported types
Methods
getCommitter
reflogEntryGetCommitter Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m Signature | Returns: the committer. |
Gets the committer as a Signature.
getMessage
reflogEntryGetMessage Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m Text | Returns: the message. |
Gets the message.
getNewId
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m OId | Returns: the new oid. |
Gets the new OId.
getOldId
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m OId | Returns: the old oid. |
Gets the old OId.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ReflogEntry |
|
| -> m 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.