Skip to main content

Module signature

Module signature 

Source
Expand description

In a Git commit, the author signature contains the name, email address, timestamp, and timezone of the person who authored the commit. This information is stored in a specific format, which consists of the following fields:

  • Name: The name of the author, encoded as a UTF-8 string.
  • Email: The email address of the author, encoded as a UTF-8 string.
  • Timestamp: The timestamp of when the commit was authored, encoded as a decimal number of seconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
  • Timezone: The timezone offset of the author’s local time from Coordinated Universal Time (UTC), encoded as a string in the format “+HHMM” or “-HHMM”.

Structs§

Signature
Represents a Git signature, including the author’s name, email, timestamp, and timezone.

Enums§

SignatureType
In addition to the author signature, Git also includes a “committer” signature, which indicates who committed the changes to the repository. The committer signature is similar in structure to the author signature, but includes the name, email address, and timestamp of the committer instead. This can be useful in situations where multiple people are working on a project and changes are being reviewed and merged by someone other than the original author.