Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Represents the options used when reverting.
Synopsis
- newtype RevertOptions = RevertOptions (ManagedPtr RevertOptions)
- noRevertOptions :: Maybe RevertOptions
- revertOptionsCopy :: (HasCallStack, MonadIO m) => RevertOptions -> m (Maybe RevertOptions)
- revertOptionsFree :: (HasCallStack, MonadIO m) => RevertOptions -> m ()
- revertOptionsNew :: (HasCallStack, MonadIO m, IsCheckoutOptions a) => Word32 -> Maybe MergeOptions -> Maybe a -> m (Maybe RevertOptions)
Exported types
newtype RevertOptions Source #
Memory-managed wrapper type.
Instances
Eq RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions (==) :: RevertOptions -> RevertOptions -> Bool # (/=) :: RevertOptions -> RevertOptions -> Bool # | |
IsGValue RevertOptions Source # | Convert |
Defined in GI.Ggit.Structs.RevertOptions toGValue :: RevertOptions -> IO GValue # fromGValue :: GValue -> IO RevertOptions # | |
BoxedObject RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions boxedType :: RevertOptions -> IO GType # |
noRevertOptions :: Maybe RevertOptions Source #
A convenience alias for Nothing
:: Maybe
RevertOptions
.
Methods
Overloaded methods
copy
:: (HasCallStack, MonadIO m) | |
=> RevertOptions |
|
-> m (Maybe RevertOptions) | Returns: a newly allocated |
Copies revertOptions
into a newly allocated RevertOptions
.
free
:: (HasCallStack, MonadIO m) | |
=> RevertOptions |
|
-> m () |
Frees revertOptions
.
new
:: (HasCallStack, MonadIO m, IsCheckoutOptions a) | |
=> Word32 |
|
-> Maybe MergeOptions |
|
-> Maybe a |
|
-> m (Maybe RevertOptions) | Returns: a |
Create a new RevertOptions
. Note that the passed in mergeOptions
and
checkoutOptions
are copied by this function, and alterations in either
after this call are therefore not reflected in the revert options.
The mainline
indicates which parent to use for the revert when reverting
a merge commit.