gi-ggit-1.0.8: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.RevertOptions

Description

Represents the options used when reverting.

Synopsis

Exported types

newtype RevertOptions Source #

Memory-managed wrapper type.

Methods

Overloaded methods

copy

revertOptionsCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RevertOptions

revertOptions: a RevertOptions.

-> m (Maybe RevertOptions)

Returns: a newly allocated RevertOptions or Nothing.

Copies revertOptions into a newly allocated RevertOptions.

free

revertOptionsFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RevertOptions

revertOptions: a RevertOptions.

-> m () 

Frees revertOptions.

new

revertOptionsNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsCheckoutOptions a) 
=> Word32

mainline: the mainline.

-> Maybe MergeOptions

mergeOptions: a MergeOptions.

-> Maybe a

checkoutOptions: a CheckoutOptions.

-> m (Maybe RevertOptions)

Returns: a RevertOptions or Nothing.

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.