| 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.CloneOptions
Contents
Description
Represents the options used when cloning.
- newtype CloneOptions = CloneOptions (ManagedPtr CloneOptions)
- class GObject o => IsCloneOptions o
- toCloneOptions :: (MonadIO m, IsCloneOptions o) => o -> m CloneOptions
- noCloneOptions :: Maybe CloneOptions
- cloneOptionsGetCheckoutBranch :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> m Text
- cloneOptionsGetFetchOptions :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> m FetchOptions
- cloneOptionsGetIsBare :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> m Bool
- cloneOptionsGetLocal :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> m CloneLocal
- cloneOptionsNew :: (HasCallStack, MonadIO m) => m CloneOptions
- cloneOptionsSetCheckoutBranch :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> Maybe Text -> m ()
- cloneOptionsSetFetchOptions :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> Maybe FetchOptions -> m ()
- cloneOptionsSetIsBare :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> Bool -> m ()
- cloneOptionsSetLocal :: (HasCallStack, MonadIO m, IsCloneOptions a) => a -> CloneLocal -> m ()
Exported types
newtype CloneOptions Source #
Constructors
| CloneOptions (ManagedPtr CloneOptions) |
class GObject o => IsCloneOptions o Source #
Instances
toCloneOptions :: (MonadIO m, IsCloneOptions o) => o -> m CloneOptions Source #
Methods
getCheckoutBranch
cloneOptionsGetCheckoutBranch Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> m Text | Returns: the name of the branch to checkout or |
Gets the name of the branch to checkout or Nothing.
getFetchOptions
cloneOptionsGetFetchOptions Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> m FetchOptions | Returns: the fetch options or |
Get the fetch options object or Nothing if not set.
getIsBare
cloneOptionsGetIsBare Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> m Bool | Returns: |
Gets if the repository will be bare.
getLocal
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> m CloneLocal | Returns: the local clone setting. |
Get setting for bypassing the git-aware transport when cloning. The default auto setting bypasses the git-aware transport for local paths, but use a normal fetch for file:// URIs.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m CloneOptions | Returns: a newly allocated |
Creates a new CloneOptions.
setCheckoutBranch
cloneOptionsSetCheckoutBranch Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Gives the name of the branch to checkout. Nothing means
use the remote's HEAD.
setFetchOptions
cloneOptionsSetFetchOptions Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> Maybe FetchOptions |
|
| -> m () |
Set the fetch options object.
setIsBare
cloneOptionsSetIsBare Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether to clone a bare repository.
setLocal
Arguments
| :: (HasCallStack, MonadIO m, IsCloneOptions a) | |
| => a |
|
| -> CloneLocal |
|
| -> m () |
Set setting for bypassing the git-aware transport when cloning. The default auto setting bypasses the git-aware transport for local paths, but use a normal fetch for file:// URIs.