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.Tag
Description
Represents a tag object.
Synopsis
- newtype Tag = Tag (ManagedPtr Tag)
- class GObject o => IsTag o
- toTag :: (MonadIO m, IsTag o) => o -> m Tag
- noTag :: Maybe Tag
- tagGetMessage :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetName :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetTagger :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Signature)
- tagGetTarget :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
- tagGetTargetId :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe OId)
- tagGetTargetType :: (HasCallStack, MonadIO m, IsTag a) => a -> m GType
- tagPeel :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
Exported types
Memory-managed wrapper type.
Constructors
Tag (ManagedPtr Tag) |
Instances
GObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag Methods gobjectType :: Tag -> IO GType # | |
IsObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsNative Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsObjectFactoryBase Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsTag Tag Source # | |
Defined in GI.Ggit.Objects.Tag |
class GObject o => IsTag o Source #
Instances
(GObject a, (UnknownAncestorError Tag a :: Constraint)) => IsTag a Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsTag Tag Source # | |
Defined in GI.Ggit.Objects.Tag |
Methods
getMessage
Arguments
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the message of the tag or |
Gets the message of tag
.
getName
Arguments
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of the tag or |
Gets the name of tag
.
getTagger
Arguments
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Signature) | Returns: the tagger (author) of the tag or |
Get the tagger (author) of tag
. The returned value must be free with
objectUnref
.
getTarget
Arguments
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Object) | Returns: the target |
Gets the target Object
of tag
.
This method performs a repository lookup for the given object and returns it.
getTargetId
Gets the target OId
of tag
.
getTargetType
Get the target object type.