Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Ggit.Structs.RevertOptions
Contents
Description
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.
Constructors
RevertOptions (ManagedPtr RevertOptions) |
Instances
BoxedObject RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions Methods boxedType :: RevertOptions -> IO GType |
noRevertOptions :: Maybe RevertOptions Source #
A convenience alias for Nothing
:: Maybe
RevertOptions
.
Methods
copy
Arguments
:: (HasCallStack, MonadIO m) | |
=> RevertOptions |
|
-> m (Maybe RevertOptions) | Returns: a newly allocated |
Copies revertOptions
into a newly allocated RevertOptions
.
free
Arguments
:: (HasCallStack, MonadIO m) | |
=> RevertOptions |
|
-> m () |
Frees revertOptions
.
new
Arguments
:: (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.