gi-ggit-1.0.1: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.Tag

Contents

Description

Represents a tag object.

Synopsis

Exported types

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

Methods

getMessage

tagGetMessage Source #

Arguments

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

tag: a Tag.

-> m Text

Returns: the message of the tag.

Gets the message of tag.

getName

tagGetName Source #

Arguments

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

tag: a Tag.

-> m Text

Returns: the name of the tag.

Gets the name of tag.

getTagger

tagGetTagger Source #

Arguments

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

tag: a Tag.

-> m Signature

Returns: the tagger (author) of the tag.

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 Object

Returns: the target Object of the tag. (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 OId

Returns: the target OId of the tag.

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 Object

Returns: a Object. (Can throw GError)

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