| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Structs.RevertOptions
Contents
Description
Represents the options used when reverting.
- newtype RevertOptions = RevertOptions (ManagedPtr RevertOptions)
- noRevertOptions :: Maybe RevertOptions
- revertOptionsCopy :: (HasCallStack, MonadIO m) => RevertOptions -> m RevertOptions
- revertOptionsFree :: (HasCallStack, MonadIO m) => RevertOptions -> m ()
- revertOptionsNew :: (HasCallStack, MonadIO m, IsCheckoutOptions a) => Word32 -> Maybe MergeOptions -> Maybe a -> m RevertOptions
Exported types
Methods
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RevertOptions |
|
| -> m 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 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.