Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a reflog entry.
Synopsis
- newtype ReflogEntry = ReflogEntry (ManagedPtr ReflogEntry)
- noReflogEntry :: Maybe 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.
Instances
BoxedObject ReflogEntry Source # | |
Defined in GI.Ggit.Structs.ReflogEntry boxedType :: ReflogEntry -> IO GType # |
noReflogEntry :: Maybe ReflogEntry Source #
A convenience alias for Nothing
:: Maybe
ReflogEntry
.
Methods
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.