| Top | Description | Object Hierarchy | Properties |
GgitSignature; struct GgitSignatureClass; GgitSignature * ggit_signature_new (const gchar *name,const gchar *email,GDateTime *signature_time,GError **error); GgitSignature * ggit_signature_new_now (const gchar *name,const gchar *email,GError **error); const gchar * ggit_signature_get_name (GgitSignature *signature); const gchar * ggit_signature_get_email (GgitSignature *signature); GDateTime * ggit_signature_get_time (GgitSignature *signature); GTimeZone * ggit_signature_get_time_zone (GgitSignature *signature);
struct GgitSignatureClass {
};
The class structure for GgitSignatureClass.
GgitSignature * ggit_signature_new (const gchar *name,const gchar *email,GDateTime *signature_time,GError **error);
Creates a new GgitSignature. Name and e-mail are assumed to be in UTF-8.
|
the name of the person. |
|
the email of the person. |
|
the time when the action happened. |
|
a GError for error reporting, or NULL. |
Returns : |
a newly allocated GgitSignature. [transfer full] |
GgitSignature * ggit_signature_new_now (const gchar *name,const gchar *email,GError **error);
Creates a new GgitSignature with a timestamp of 'now'. Name and e-mail are assumed to be in UTF-8.
|
the name of the person. |
|
the email of the person. |
|
a GError for error reporting, or NULL. |
Returns : |
a newly allocated GgitSignature. [transfer full] |
const gchar * ggit_signature_get_name (GgitSignature *signature);
Gets the name of the person.
|
a GgitSignature. |
Returns : |
the name of the person. |
const gchar * ggit_signature_get_email (GgitSignature *signature);
Gets the email of the person.
|
a GgitSignature. |
Returns : |
the email of the person. |
GDateTime * ggit_signature_get_time (GgitSignature *signature);
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).
|
a GgitSignature. |
Returns : |
the time when the action happened. [transfer full] |
GTimeZone * ggit_signature_get_time_zone (GgitSignature *signature);
Gets the timezone in which the action happened.
|
a GgitSignature. |
Returns : |
the timezone in which the action happened. [transfer full] |