gi-ggit-1.0.1: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.CheckoutOptions

Contents

Description

Represents the options used when doign a checkout.

Synopsis

Exported types

Methods

getAncestorLabel

checkoutOptionsGetAncestorLabel Source #

Arguments

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

options: a CheckoutOptions.

-> m (Maybe Text)

Returns: the checkout ancestor label.

Get the checkout ancestor label.

getBaseline

checkoutOptionsGetBaseline Source #

Arguments

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

options: a CheckoutOptions.

-> m Tree

Returns: a Tree.

Get the baseline, i.e. the expected content of workdir. Defaults to HEAD.

getDirMode

checkoutOptionsGetDirMode Source #

Arguments

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

options: a CheckoutOptions.

-> m Word32

Returns: the default directory mode.

Get the default checkout directory mode.

getDisableFilters

checkoutOptionsGetDisableFilters Source #

Arguments

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

options: a CheckoutOptions.

-> m Bool

Returns: True if filters are disabled, False otherwise.

Get whether filters are disabled.

getFileMode

checkoutOptionsGetFileMode Source #

Arguments

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

options: a CheckoutOptions.

-> m Word32

Returns: the default checkout file mode.

Get the default checkout file mode.

getFileOpenFlags

checkoutOptionsGetFileOpenFlags Source #

Arguments

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

options: a CheckoutOptions.

-> m Int32

Returns: the checkout file open flags.

Get the checkout file open flags. These flags are platform specific, e.g. on Unix these would include O_CREAT, O_TRUNC, etc.

getNotifyFlags

checkoutOptionsGetNotifyFlags Source #

Arguments

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

options: a CheckoutOptions.

-> m [CheckoutNotifyFlags]

Returns: a CheckoutNotifyFlags.

Get the checkout notify flags.

getOurLabel

checkoutOptionsGetOurLabel Source #

Arguments

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

options: a CheckoutOptions.

-> m (Maybe Text)

Returns: the checkout our label.

Get the checkout our label.

getPaths

checkoutOptionsGetPaths Source #

Arguments

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

options: a CheckoutOptions.

-> m (Maybe [Text])

Returns: a Nothing terminated list of file paths, or Nothing.

Get the list of file paths to checkout.

getStrategy

checkoutOptionsGetStrategy Source #

Arguments

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

options: a CheckoutOptions.

-> m [CheckoutStrategy]

Returns: a CheckoutStrategy.

Get the checkout strategy.

getTargetDirectory

checkoutOptionsGetTargetDirectory Source #

Arguments

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

options: a CheckoutOptions.

-> m (Maybe Text)

Returns: the checkout target directory.

Get the checkout target directory.

getTheirLabel

checkoutOptionsGetTheirLabel Source #

Arguments

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

options: a CheckoutOptions.

-> m (Maybe Text)

Returns: the checkout their label.

Get the checkout their label.

new

checkoutOptionsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CheckoutOptions

Returns: a CheckoutOptions.

Create a new checkout options object.

setAncestorLabel

checkoutOptionsSetAncestorLabel Source #

Arguments

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

options: a CheckoutOptions.

-> Maybe Text

label: the ancestor label.

-> m () 

Set the checkout ancestor label.

setBaseline

checkoutOptionsSetBaseline Source #

Arguments

:: (HasCallStack, MonadIO m, IsCheckoutOptions a, IsTree b) 
=> a

options: a CheckoutOptions.

-> Maybe b

tree: a Tree.

-> m () 

Set the baseline, i.e. the expected content of workdir. If tree is set to Nothing, the default (HEAD) will be used as the baseline.

setDirMode

checkoutOptionsSetDirMode Source #

Arguments

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

options: a CheckoutOptions.

-> Word32

dirMode: the dir mode.

-> m () 

Set the default checkout directory mode.

setDisableFilters

checkoutOptionsSetDisableFilters Source #

Arguments

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

options: a CheckoutOptions.

-> Bool

disable: disable filters.

-> m () 

Set whether to disable filters.

setFileMode

checkoutOptionsSetFileMode Source #

Arguments

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

options: a CheckoutOptions.

-> Word32

fileMode: the file mode.

-> m () 

Set the default checkout file mode.

setFileOpenFlags

checkoutOptionsSetFileOpenFlags Source #

Arguments

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

options: a CheckoutOptions.

-> Int32

flags: the file open flags.

-> m () 

Set the checkout file open flags. These flags are platform dependent, e.g. on Unix use O_CREAT, O_TRUNC, etc.

setNotifyFlags

checkoutOptionsSetNotifyFlags Source #

Arguments

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

options: a CheckoutOptions.

-> [CheckoutNotifyFlags]

flags: a CheckoutNotifyFlags.

-> m () 

Set the checkout notify flags.

setOurLabel

checkoutOptionsSetOurLabel Source #

Arguments

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

options: a CheckoutOptions.

-> Maybe Text

label: the our label.

-> m () 

Set the checkout our label.

setPaths

checkoutOptionsSetPaths Source #

Arguments

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

options: a CheckoutOptions.

-> Maybe [Text]

paths: a Nothing terminated list of paths.

-> m () 

Set the list of file paths to checkout. If paths is Nothing, then all files will be checked out.

setStrategy

checkoutOptionsSetStrategy Source #

Arguments

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

options: a CheckoutOptions.

-> [CheckoutStrategy]

strategy: a CheckoutStrategy.

-> m () 

Set the checkout strategy.

setTargetDirectory

checkoutOptionsSetTargetDirectory Source #

Arguments

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

options: a CheckoutOptions.

-> Maybe Text

directory: the target directory.

-> m () 

Set the checkout target directory.

setTheirLabel

checkoutOptionsSetTheirLabel Source #

Arguments

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

options: a CheckoutOptions.

-> Maybe Text

label: the their label.

-> m () 

Set the checkout their label.

Properties

ancestorLabel

baseline

dirMode

disableFilters

fileMode

fileOpenFlags

notifyFlags

ourLabel

strategy

targetDirectory

theirLabel