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)
- 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.
RevertOptions (ManagedPtr RevertOptions) |
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 toManagedPtr :: RevertOptions -> ManagedPtr RevertOptions | |
TypedObject RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions glibType :: IO GType | |
IsGValue RevertOptions Source # | Convert |
Defined in GI.Ggit.Structs.RevertOptions toGValue :: RevertOptions -> IO GValue fromGValue :: GValue -> IO RevertOptions | |
HasParentTypes RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions | |
type ParentTypes RevertOptions Source # | |
Defined in GI.Ggit.Structs.RevertOptions type ParentTypes RevertOptions = '[] :: [Type] |
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.