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.Signature

Contents

Description

Represents an action signature.

Synopsis

Exported types

Methods

copy

signatureCopy Source #

Arguments

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

signature: a Signature.

-> m Signature

Returns: a Signature.

Create a copy of the signature.

getEmail

signatureGetEmail Source #

Arguments

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

signature: a Signature.

-> m Text

Returns: the email of the person.

Gets the email of the person.

getName

signatureGetName Source #

Arguments

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

signature: a Signature.

-> m Text

Returns: the name of the person.

Gets the name of the person.

getTime

signatureGetTime Source #

Arguments

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

signature: a Signature.

-> m DateTime

Returns: the time when the action happened.

Gets the time when the action happened. Note that the time is returned in the timezone of the commit (see ggit_signature_get_time_zone).

getTimeZone

signatureGetTimeZone Source #

Arguments

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

signature: a Signature.

-> m TimeZone

Returns: the timezone in which the action happened.

Gets the timezone in which the action happened.

new

signatureNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: the name of the person.

-> Text

email: the email of the person.

-> DateTime

signatureTime: the time when the action happened.

-> m Signature

Returns: a newly allocated Signature. (Can throw GError)

Creates a new Signature. Name and e-mail are assumed to be in UTF-8.

newNow

signatureNewNow Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: the name of the person.

-> Text

email: the email of the person.

-> m Signature

Returns: a newly allocated Signature. (Can throw GError)

Creates a new Signature with a timestamp of 'now'. Name and e-mail are assumed to be in UTF-8.

Properties

encoding