gi-ggit-1.0.8: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.Tag

Description

Represents a tag object.

Synopsis

Exported types

newtype Tag Source #

Memory-managed wrapper type.

Constructors

Tag (ManagedPtr Tag) 

Instances

Instances details
Eq Tag Source # 
Instance details

Defined in GI.Ggit.Objects.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

IsGValue Tag Source #

Convert Tag to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Objects.Tag

GObject Tag Source # 
Instance details

Defined in GI.Ggit.Objects.Tag

Methods

gobjectType :: IO GType #

HasParentTypes Tag Source # 
Instance details

Defined in GI.Ggit.Objects.Tag

type ParentTypes Tag Source # 
Instance details

Defined in GI.Ggit.Objects.Tag

class (GObject o, IsDescendantOf Tag o) => IsTag o Source #

Type class for types which can be safely cast to Tag, for instance with toTag.

Instances

Instances details
(GObject o, IsDescendantOf Tag o) => IsTag o Source # 
Instance details

Defined in GI.Ggit.Objects.Tag

toTag :: (MonadIO m, IsTag o) => o -> m Tag Source #

Cast to Tag, for types for which this is known to be safe. For general casts, use castTo.

noTag :: Maybe Tag Source #

A convenience alias for Nothing :: Maybe Tag.

Methods

Overloaded methods

getMessage

tagGetMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe Text)

Returns: the message of the tag or Nothing.

Gets the message of tag.

getName

tagGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe Text)

Returns: the name of the tag or Nothing.

Gets the name of tag.

getTagger

tagGetTagger Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe Signature)

Returns: the tagger (author) of the tag or Nothing.

Get the tagger (author) of tag. The returned value must be free with objectUnref.

getTarget

tagGetTarget Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe Object)

Returns: the target Object of the tag or Nothing. (Can throw GError)

Gets the target Object of tag.

This method performs a repository lookup for the given object and returns it.

getTargetId

tagGetTargetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe OId)

Returns: the target OId of the tag or Nothing.

Gets the target OId of tag.

getTargetType

tagGetTargetType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m GType

Returns: a GType.

Get the target object type.

peel

tagPeel Source #

Arguments

:: (HasCallStack, MonadIO m, IsTag a) 
=> a

tag: a Tag.

-> m (Maybe Object)

Returns: a Object or Nothing. (Can throw GError)

Recursively peel a tag until a non tag object is found.