| 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.RebaseOperation
Description
Represents a rebase operation.
- newtype RebaseOperation = RebaseOperation (ManagedPtr RebaseOperation)
- noRebaseOperation :: Maybe RebaseOperation
- rebaseOperationGetExec :: (HasCallStack, MonadIO m) => RebaseOperation -> m Text
- rebaseOperationGetId :: (HasCallStack, MonadIO m) => RebaseOperation -> m OId
- rebaseOperationGetOperationType :: (HasCallStack, MonadIO m) => RebaseOperation -> m RebaseOperationType
- rebaseOperationRef :: (HasCallStack, MonadIO m) => RebaseOperation -> m RebaseOperation
- rebaseOperationUnref :: (HasCallStack, MonadIO m) => RebaseOperation -> m ()
Exported types
Methods
getExec
rebaseOperationGetExec Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m Text | Returns: the executable the user has requested be run. |
Gets the executable the user has requested be run. This will only
be populated for operations of type gGITREBASEOPERATIONEXEC.
getId
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m OId | Returns: the commit ID being cherry-picked. |
Gets the commit ID being cherry-picked. This will be populated for
all operations except those of type gGITREBASEOPERATIONEXEC.
getOperationType
rebaseOperationGetOperationType Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m RebaseOperationType | Returns: a |
Gets the type of rebase operation.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m 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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m () |
Atomically decrements the reference count of rebaseOperation by one.
If the reference count drops to 0, rebaseOperation is freed.