Ggit.Signature

g GObject.Object GObject.Object Ggit.ObjectFactoryBase Ggit.ObjectFactoryBase GObject.Object->Ggit.ObjectFactoryBase Ggit.Native Ggit.Native Ggit.Signature Ggit.Signature Ggit.Native->Ggit.Signature Ggit.ObjectFactoryBase->Ggit.Native

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name, email, signature_time)

class

new_now (name, email)

copy ()

get_email ()

get_name ()

get_time ()

get_time_zone ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Ggit.Native (1)

Name

Type

Flags

Short Description

encoding

str

r/w/co

Encoding

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Ggit.Signature(**kwargs)
Bases:

Ggit.Native

Abstract:

No

Structure:

Ggit.SignatureClass

Represents an action signature.

classmethod new(name, email, signature_time)
Parameters:
  • name (str) – the name of the person.

  • email (str) – the email of the person.

  • signature_time (GLib.DateTime) – the time when the action happened.

Raises:

GLib.Error

Returns:

a newly allocated Ggit.Signature or None.

Return type:

Ggit.Signature or None

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

classmethod new_now(name, email)
Parameters:
  • name (str) – the name of the person.

  • email (str) – the email of the person.

Raises:

GLib.Error

Returns:

a newly allocated Ggit.Signature or None.

Return type:

Ggit.Signature or None

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

copy()
Returns:

a Ggit.Signature or None.

Return type:

Ggit.Signature or None

Create a copy of the signature.

get_email()
Returns:

the email of the person or None.

Return type:

str or None

Gets the email of the person.

get_name()
Returns:

the name of the person or None.

Return type:

str or None

Gets the name of the person.

get_time()
Returns:

the time when the action happened or None.

Return type:

GLib.DateTime or None

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

get_time_zone()
Returns:

the timezone in which the action happened or None.

Return type:

GLib.TimeZone or None

Gets the timezone in which the action happened.

Property Details

Ggit.Signature.props.encoding
Name:

encoding

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Encoding