gi-ggit-1.0.11: 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.Objects.PushOptions

Description

Represents a git push options.

Synopsis

Exported types

class (GObject o, IsDescendantOf PushOptions o) => IsPushOptions o Source #

Type class for types which can be safely cast to PushOptions, for instance with toPushOptions.

Instances

Instances details
(GObject o, IsDescendantOf PushOptions o) => IsPushOptions o Source # 
Instance details

Defined in GI.Ggit.Objects.PushOptions

toPushOptions :: (MonadIO m, IsPushOptions o) => o -> m PushOptions Source #

Cast to PushOptions, for types for which this is known to be safe. For general casts, use castTo.

Methods

getParallelism

pushOptionsGetParallelism Source #

Arguments

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

options: a PushOptions.

-> m Int32

Returns: the number of parallel threads, or 0 for auto-detect.

Get the number of parallel threads to use when creating the pack file to push. The special value 0 indicates that the number of threads will be automatically detected.

getRemoteCallbacks

pushOptionsGetRemoteCallbacks Source #

Arguments

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

options: a PushOptions.

-> m (Maybe RemoteCallbacks)

Returns: the object's id or Nothing.

gets the remote callbacks object

new

pushOptionsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m (Maybe PushOptions)

Returns: a PushOptions or Nothing.

Create a new push options object.

setParallelism

pushOptionsSetParallelism Source #

Arguments

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

options: a PushOptions.

-> Int32

parallelism: the number of threads, or 0 for auto-detect.

-> m () 

Set the number of parallel threads to use when creating the pack file to push. The special value 0 can be specified for parallelism indicating that the number of threads will be automatically detected.

setRemoteCallbacks

pushOptionsSetRemoteCallbacks Source #

Arguments

:: (HasCallStack, MonadIO m, IsPushOptions a, IsRemoteCallbacks b) 
=> a

options: a PushOptions.

-> b

callbacks: the RemoteCallbacks

-> m () 

Set the remote callbacks for the push options

Properties

callbacks

No description available in the introspection data.

clearPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m () Source #

Set the value of the “callbacks” property to Nothing. When overloading is enabled, this is equivalent to

clear #callbacks

constructPushOptionsCallbacks :: (IsPushOptions o, MonadIO m, IsRemoteCallbacks a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “callbacks” property. This is rarely needed directly, but it is used by new.

getPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m (Maybe RemoteCallbacks) Source #

Get the value of the “callbacks” property. When overloading is enabled, this is equivalent to

get pushOptions #callbacks

setPushOptionsCallbacks :: (MonadIO m, IsPushOptions o, IsRemoteCallbacks a) => o -> a -> m () Source #

Set the value of the “callbacks” property. When overloading is enabled, this is equivalent to

set pushOptions [ #callbacks := value ]

parallelism

No description available in the introspection data.

constructPushOptionsParallelism :: (IsPushOptions o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “parallelism” property. This is rarely needed directly, but it is used by new.

getPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> m Int32 Source #

Get the value of the “parallelism” property. When overloading is enabled, this is equivalent to

get pushOptions #parallelism

setPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> Int32 -> m () Source #

Set the value of the “parallelism” property. When overloading is enabled, this is equivalent to

set pushOptions [ #parallelism := value ]