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 |
Represents the options used when reverting.
Synopsis
- newtype RevertOptions = RevertOptions (ManagedPtr 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 # | |
GBoxed RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions | |
ManagedPtrNewtype RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions | |
TypedObject RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions | |
HasParentTypes RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions | |
IsGValue (Maybe RevertOptions) Source # | Convert |
Defined in GI.Ggit.Structs.RevertOptions gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe RevertOptions -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe RevertOptions) # | |
type ParentTypes RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions |
Methods
Click to display all available methods, including inherited ones
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.