Method Git.Export()->format_author()


Method format_author

string format_author(string gecos, string email, string|int timestamp, int|void tz_offset)

Description

Format a committer info string.

Parameter gecos

Display name of a person (eg "Com M Itter").

Parameter email

Email address of the person (eg "cm@example.com").

Parameter timestamp

Either a properly formatted timestamp string, or the number of seconds since the Unix epoch (ie 1970-01-01T00:00:00 UTC).

Parameter tz_offset

Local timezone offset in minutes where the commit was performed. This argument is ignored when timestamp is a string. Defaults to 0.

Returns

This function returns a string that indicates who made a commit and when.

See also

commit(), tag()