42 Signature
(require libgit2/include/signature) | package: libgit2 |
This looks up the user.name and user.email from the configuration and uses the current time as the timestamp, and creates a new signature based on that information. It will return GIT_ENOTFOUND if either the user.name or user.email are not set.
Call git_signature_free() to free the data.
procedure
(git_signature_free sig) → void?
sig : signature?
Because the signature is not an opaque structure, it is legal to free it manually, but be sure to free the "name" and "email" strings in addition to the structure itself.
procedure
buf : string?
timestamp tzoffset", where timestamp is the number of seconds since the Unix epoch and tzoffset is the timezone offset in hhmm format (note the lack of a colon separator).
Call git_signature_free() to free the data.
Note: angle brackets (’<’ and ’>’) characters are not allowed to be used in either the name or the email parameter.
Call git_signature_free() to free the data.