Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a rebase object.
Synopsis
- newtype Rebase = Rebase (ManagedPtr Rebase)
- class (GObject o, IsDescendantOf Rebase o) => IsRebase o
- toRebase :: (MonadIO m, IsRebase o) => o -> m Rebase
- rebaseAbort :: (HasCallStack, MonadIO m, IsRebase a) => a -> m ()
- rebaseCommit :: (HasCallStack, MonadIO m, IsRebase a, IsSignature b, IsSignature c) => a -> Maybe b -> c -> Maybe Text -> m (Maybe OId)
- rebaseFinish :: (HasCallStack, MonadIO m, IsRebase a, IsSignature b) => a -> Maybe b -> m ()
- rebaseGetOperationByIndex :: (HasCallStack, MonadIO m, IsRebase a) => a -> Word64 -> m (Maybe RebaseOperation)
- rebaseGetOperationEntryCount :: (HasCallStack, MonadIO m, IsRebase a) => a -> m Word64
- rebaseGetOperationIndex :: (HasCallStack, MonadIO m, IsRebase a) => a -> m Word64
- rebaseNext :: (HasCallStack, MonadIO m, IsRebase a) => a -> m (Maybe RebaseOperation)
Exported types
Memory-managed wrapper type.
Instances
Eq Rebase Source # | |
GObject Rebase Source # | |
Defined in GI.Ggit.Objects.Rebase | |
ManagedPtrNewtype Rebase Source # | |
Defined in GI.Ggit.Objects.Rebase toManagedPtr :: Rebase -> ManagedPtr Rebase | |
TypedObject Rebase Source # | |
Defined in GI.Ggit.Objects.Rebase | |
HasParentTypes Rebase Source # | |
Defined in GI.Ggit.Objects.Rebase | |
IsGValue (Maybe Rebase) Source # | Convert |
Defined in GI.Ggit.Objects.Rebase gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Rebase -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Rebase) | |
type ParentTypes Rebase Source # | |
Defined in GI.Ggit.Objects.Rebase |
class (GObject o, IsDescendantOf Rebase o) => IsRebase o Source #
Instances
(GObject o, IsDescendantOf Rebase o) => IsRebase o Source # | |
Defined in GI.Ggit.Objects.Rebase |
Methods
Click to display all available methods, including inherited ones
Methods
abort, bindProperty, bindPropertyFull, commit, finish, forceFloating, freezeNotify, getv, isFloating, next, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getOperationByIndex, getOperationEntryCount, getOperationIndex, getProperty, getQdata.
Setters
abort
:: (HasCallStack, MonadIO m, IsRebase a) | |
=> a |
|
-> m () | (Can throw |
Aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.
commit
:: (HasCallStack, MonadIO m, IsRebase a, IsSignature b, IsSignature c) | |
=> a |
|
-> Maybe b |
|
-> c |
|
-> Maybe Text |
|
-> m (Maybe OId) | Returns: a |
Commits the current patch. You must have resolved any conflicts that
were introduced during the patch application from the rebaseNext
invocation.
finish
:: (HasCallStack, MonadIO m, IsRebase a, IsSignature b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
Finishes a rebase that is currently in progress once all patches have been applied.
getOperationByIndex
rebaseGetOperationByIndex Source #
:: (HasCallStack, MonadIO m, IsRebase a) | |
=> a |
|
-> Word64 |
|
-> m (Maybe RebaseOperation) | Returns: The rebase operation or |
Gets the rebase operation specified by idx
.
getOperationEntryCount
rebaseGetOperationEntryCount Source #
:: (HasCallStack, MonadIO m, IsRebase a) | |
=> a |
|
-> m Word64 | Returns: the count of rebase operations that are to be applied. |
Gets the count of rebase operations that are to be applied.
getOperationIndex
rebaseGetOperationIndex Source #
:: (HasCallStack, MonadIO m, IsRebase a) | |
=> a |
|
-> m Word64 | Returns: The index of the rebase operation currently being applied. |
Gets the index of the rebase operation that is currently being applied.
If the first operation has not yet been applied (because you have
called repositoryRebaseInit
but not yet rebaseNext
)
then this returns gGITREBASENOOPERATION
.
next
:: (HasCallStack, MonadIO m, IsRebase a) | |
=> a |
|
-> m (Maybe RebaseOperation) | Returns: the rebase operation that is to be performed next or |
Performs the next rebase operation and returns the information about it.
If the operation is one that applies a patch (which is any operation except
gGITREBASEOPERATIONEXEC
) then the patch will be applied and the index and
working directory will be updated with the changes. If there are conflicts,
you will need to address those before committing the changes.