Ggit.Signature¶
| 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: - Returns: - a newly allocated - Ggit.Signatureor- None.- Return type: - Creates a new - Ggit.Signature. Name and e-mail are assumed to be in UTF-8.
- name (
 - 
classmethod new_now(name, email)¶
- Parameters: - Raises: - Returns: - a newly allocated - Ggit.Signatureor- None.- Return type: - Creates a new - Ggit.Signaturewith a timestamp of ‘now’. Name and e-mail are assumed to be in UTF-8.
 - 
copy()¶
- Returns: - a - Ggit.Signatureor- None.- Return type: - Ggit.Signatureor- None- Create a copy of the signature. 
 - 
get_email()¶
- Returns: - the email of the person or - None.- Return type: - stror- None- Gets the email of the person. 
 - 
get_name()¶
- Returns: - the name of the person or - None.- Return type: - stror- None- Gets the name of the person. 
 - 
get_time()¶
- Returns: - the time when the action happened or - None.- Return type: - GLib.DateTimeor- 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.TimeZoneor- None- Gets the timezone in which the action happened. 
 
- 
classmethod