gi-ggit-1.0.14: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

HasParentTypes RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

IsGValue (Maybe RevertOptions) Source #

Convert RevertOptions to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.RevertOptions

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe RevertOptions -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe RevertOptions)

type ParentTypes RevertOptions Source # 
Instance details

Defined in GI.Ggit.Structs.RevertOptions

type ParentTypes RevertOptions = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free.

Getters

None.

Setters

None.

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.