| 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.RebaseOperation
Description
Represents a rebase operation.
Synopsis
- newtype RebaseOperation = RebaseOperation (ManagedPtr 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.
Constructors
| RebaseOperation (ManagedPtr RebaseOperation) |
Instances
| Eq RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation Methods (==) :: RebaseOperation -> RebaseOperation -> Bool # (/=) :: RebaseOperation -> RebaseOperation -> Bool # | |
| GBoxed RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation | |
| ManagedPtrNewtype RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation Methods toManagedPtr :: RebaseOperation -> ManagedPtr RebaseOperation | |
| TypedObject RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation | |
| HasParentTypes RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation | |
| IsGValue (Maybe RebaseOperation) Source # | Convert |
Defined in GI.Ggit.Structs.RebaseOperation Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe RebaseOperation -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe RebaseOperation) | |
| type ParentTypes RebaseOperation Source # | |
Defined in GI.Ggit.Structs.RebaseOperation | |
Methods
Click to display all available methods, including inherited ones
getExec
rebaseOperationGetExec Source #
Arguments
| :: (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
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RebaseOperation |
|
| -> m RebaseOperationType | Returns: a |
Gets the type of rebase operation.
ref
Arguments
| :: (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
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.