Ggit.Signature¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Encoding |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Ggit.Signature(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
- Returns:
a newly allocated
Ggit.Signature
orNone
.- Return type:
Creates a new
Ggit.Signature
. Name and e-mail are assumed to be in UTF-8.
- classmethod new_now(name, email)¶
- Parameters:
- Raises:
- Returns:
a newly allocated
Ggit.Signature
orNone
.- Return type:
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
orNone
.- Return type:
Create a copy of the signature.
- get_email()¶
-
Gets the email of the person.
- get_name()¶
-
Gets the name of the person.
- get_time()¶
- Returns:
the time when the action happened or
None
.- Return type:
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
).