| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.PushOptions
Description
Represents a git push options.
- newtype PushOptions = PushOptions (ManagedPtr PushOptions)
- class GObject 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 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
class GObject o => IsPushOptions o Source #
Instances
toPushOptions :: (MonadIO m, IsPushOptions o) => o -> m PushOptions Source #
Methods
getParallelism
pushOptionsGetParallelism Source #
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m PushOptions | Returns: a |
Create a new push options object.
setParallelism
pushOptionsSetParallelism Source #
Arguments
| :: (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
constructPushOptionsParallelism :: IsPushOptions o => Int32 -> IO (GValueConstruct o) Source #
getPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> m Int32 Source #
setPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> Int32 -> m () Source #