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 remote head.
Synopsis
- newtype RemoteHead = RemoteHead (ManagedPtr RemoteHead)
- noRemoteHead :: Maybe RemoteHead
- remoteHeadGetLocalOid :: (HasCallStack, MonadIO m) => RemoteHead -> m (Maybe OId)
- remoteHeadGetName :: (HasCallStack, MonadIO m) => RemoteHead -> m (Maybe Text)
- remoteHeadGetOid :: (HasCallStack, MonadIO m) => RemoteHead -> m (Maybe OId)
- remoteHeadIsLocal :: (HasCallStack, MonadIO m) => RemoteHead -> m Bool
- remoteHeadRef :: (HasCallStack, MonadIO m) => RemoteHead -> m RemoteHead
- remoteHeadUnref :: (HasCallStack, MonadIO m) => RemoteHead -> m ()
Exported types
newtype RemoteHead Source #
Memory-managed wrapper type.
RemoteHead (ManagedPtr RemoteHead) |
Instances
BoxedObject RemoteHead Source # | |
Defined in GI.Ggit.Structs.RemoteHead boxedType :: RemoteHead -> IO GType |
noRemoteHead :: Maybe RemoteHead Source #
A convenience alias for Nothing
:: Maybe
RemoteHead
.
Methods
getLocalOid
remoteHeadGetLocalOid Source #
:: (HasCallStack, MonadIO m) | |
=> RemoteHead |
|
-> m (Maybe OId) | Returns: the local oid or |
Get the local oid of the remote head.
getName
:: (HasCallStack, MonadIO m) | |
=> RemoteHead |
|
-> m (Maybe Text) | Returns: the remote head name or |
Get the remote head name.
getOid
:: (HasCallStack, MonadIO m) | |
=> RemoteHead |
|
-> m (Maybe OId) | Returns: the remote oid or |
Get the remote oid of the remote head.
isLocal
:: (HasCallStack, MonadIO m) | |
=> RemoteHead |
|
-> m Bool | Returns: whether the remote head is local. |
Get whether the remote head is local.
ref
remoteHeadRef :: (HasCallStack, MonadIO m) => RemoteHead -> m RemoteHead Source #
No description available in the introspection data.
unref
remoteHeadUnref :: (HasCallStack, MonadIO m) => RemoteHead -> m () Source #
No description available in the introspection data.