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 |
Represents a rebase operation.
Synopsis
- newtype RebaseOperation = RebaseOperation (ManagedPtr RebaseOperation)
- noRebaseOperation :: Maybe RebaseOperation
- rebaseOperationGetExec :: (HasCallStack, MonadIO m) => RebaseOperation -> m (Maybe Text)
- rebaseOperationGetId :: (HasCallStack, MonadIO m) => RebaseOperation -> m (Maybe OId)
- rebaseOperationGetOperationType :: (HasCallStack, MonadIO m) => RebaseOperation -> m RebaseOperationType
- rebaseOperationRef :: (HasCallStack, MonadIO m) => RebaseOperation -> m (Maybe RebaseOperation)
- rebaseOperationUnref :: (HasCallStack, MonadIO m) => RebaseOperation -> m ()
Exported types
newtype RebaseOperation Source #
Memory-managed wrapper type.
Instances
BoxedObject RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation boxedType :: RebaseOperation -> IO GType # |
noRebaseOperation :: Maybe RebaseOperation Source #
A convenience alias for Nothing
:: Maybe
RebaseOperation
.
Methods
getExec
rebaseOperationGetExec Source #
:: (HasCallStack, MonadIO m) | |
=> RebaseOperation |
|
-> m (Maybe Text) | Returns: the executable the user has requested be run or |
Gets the executable the user has requested be run. This will only
be populated for operations of type gGITREBASEOPERATIONEXEC
.
getId
:: (HasCallStack, MonadIO m) | |
=> RebaseOperation |
|
-> m (Maybe OId) | Returns: the commit ID being cherry-picked or |
Gets the commit ID being cherry-picked. This will be populated for
all operations except those of type gGITREBASEOPERATIONEXEC
.
getOperationType
rebaseOperationGetOperationType Source #
:: (HasCallStack, MonadIO m) | |
=> RebaseOperation |
|
-> m RebaseOperationType | Returns: a |
Gets the type of rebase operation.
ref
:: (HasCallStack, MonadIO m) | |
=> RebaseOperation |
|
-> m (Maybe RebaseOperation) | Returns: a newly allocated |
Atomically increments the reference count of rebaseOperation
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> RebaseOperation |
|
-> m () |
Atomically decrements the reference count of rebaseOperation
by one.
If the reference count drops to 0, rebaseOperation
is freed.