gi-ggit-1.0.9: 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.

Constructors

RevertOptions (ManagedPtr RevertOptions) 

Instances

Instances details
Eq RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

GBoxed RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

ManagedPtrNewtype RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

Methods

toManagedPtr :: RevertOptions -> ManagedPtr RevertOptions

TypedObject RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

Methods

glibType :: IO GType

IsGValue RevertOptions Source #

Convert RevertOptions to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.RevertOptions

Methods

toGValue :: RevertOptions -> IO GValue

fromGValue :: GValue -> IO RevertOptions

HasParentTypes RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

type ParentTypes RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

type ParentTypes RevertOptions = '[] :: [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.