Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a git push options.
Synopsis
- newtype PushOptions = PushOptions (ManagedPtr PushOptions)
- class (GObject o, IsDescendantOf PushOptions o) => IsPushOptions o
- toPushOptions :: (MonadIO m, IsPushOptions o) => o -> m PushOptions
- noPushOptions :: Maybe PushOptions
- pushOptionsGetParallelism :: (HasCallStack, MonadIO m, IsPushOptions a) => a -> m Int32
- pushOptionsNew :: (HasCallStack, MonadIO m) => m (Maybe PushOptions)
- pushOptionsSetParallelism :: (HasCallStack, MonadIO m, IsPushOptions a) => a -> Int32 -> m ()
- constructPushOptionsParallelism :: IsPushOptions o => Int32 -> IO (GValueConstruct o)
- getPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> m Int32
- setPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> Int32 -> m ()
Exported types
newtype PushOptions Source #
Memory-managed wrapper type.
PushOptions (ManagedPtr PushOptions) |
Instances
GObject PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions gobjectType :: IO GType | |
HasParentTypes PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions | |
type ParentTypes PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions |
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
(GObject o, IsDescendantOf PushOptions o) => IsPushOptions o Source # | |
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
.
noPushOptions :: Maybe PushOptions Source #
A convenience alias for Nothing
:: Maybe
PushOptions
.
Methods
getParallelism
pushOptionsGetParallelism Source #
:: (HasCallStack, MonadIO m, IsPushOptions a) | |
=> a |
|
-> 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.
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe PushOptions) | Returns: a |
Create a new push options object.
setParallelism
pushOptionsSetParallelism Source #
:: (HasCallStack, MonadIO m, IsPushOptions a) | |
=> a |
|
-> Int32 |
|
-> 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.
Properties
parallelism
No description available in the introspection data.
constructPushOptionsParallelism :: IsPushOptions o => Int32 -> IO (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 ]