Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents the options used when cloning.
Synopsis
- newtype CloneOptions = CloneOptions (ManagedPtr CloneOptions)
- class (GObject o, IsDescendantOf CloneOptions o) => IsCloneOptions o
- toCloneOptions :: (MonadIO m, IsCloneOptions o) => o -> m 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 #
Memory-managed wrapper type.
CloneOptions (ManagedPtr CloneOptions) |
Instances
Eq CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions (==) :: CloneOptions -> CloneOptions -> Bool # (/=) :: CloneOptions -> CloneOptions -> Bool # | |
GObject CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions | |
ManagedPtrNewtype CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions toManagedPtr :: CloneOptions -> ManagedPtr CloneOptions | |
TypedObject CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions | |
HasParentTypes CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions | |
IsGValue (Maybe CloneOptions) Source # | Convert |
Defined in GI.Ggit.Objects.CloneOptions gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe CloneOptions -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe CloneOptions) | |
type ParentTypes CloneOptions Source # | |
Defined in GI.Ggit.Objects.CloneOptions type ParentTypes CloneOptions = '[Object] |
class (GObject o, IsDescendantOf CloneOptions o) => IsCloneOptions o Source #
Type class for types which can be safely cast to CloneOptions
, for instance with toCloneOptions
.
Instances
(GObject o, IsDescendantOf CloneOptions o) => IsCloneOptions o Source # | |
Defined in GI.Ggit.Objects.CloneOptions |
toCloneOptions :: (MonadIO m, IsCloneOptions o) => o -> m CloneOptions Source #
Cast to CloneOptions
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCheckoutBranch, getData, getFetchOptions, getIsBare, getLocal, getProperty, getQdata.
Setters
setCheckoutBranch, setData, setDataFull, setFetchOptions, setIsBare, setLocal, setProperty.
getCheckoutBranch
cloneOptionsGetCheckoutBranch Source #
:: (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 #
:: (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 #
:: (HasCallStack, MonadIO m, IsCloneOptions a) | |
=> a |
|
-> m Bool | Returns: |
Gets if the repository will be bare.
getLocal
:: (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
:: (HasCallStack, MonadIO m) | |
=> m CloneOptions | Returns: a newly allocated |
Creates a new CloneOptions
.
setCheckoutBranch
cloneOptionsSetCheckoutBranch Source #
:: (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 #
:: (HasCallStack, MonadIO m, IsCloneOptions a) | |
=> a |
|
-> Maybe FetchOptions |
|
-> m () |
Set the fetch options object.
setIsBare
cloneOptionsSetIsBare Source #
:: (HasCallStack, MonadIO m, IsCloneOptions a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether to clone a bare repository.
setLocal
:: (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.