On this page:
8.18
top
up

42SignatureπŸ”— i

procedure

( git_signature_defaultrepo)signature?

repo:repository?
Create a new action signature with default user and now timestamp.

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.

procedure

( git_signature_dupsig)signature?

sig:signature?
Create a copy of an existing signature. All internal strings are also duplicated.

Call git_signature_free() to free the data.

procedure

( git_signature_freesig)void?

sig:signature?
Free an existing 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

( git_signature_from_bufferbuf)signature?

buf:string?
Create a new signature by parsing the given buffer, which is expected to be in the format "Real Name <email

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).

procedure

( git_signature_newnameemailtimeoffset)signature?

name:string?
email:string?
time:git_time_t
offset:boolean?
Create a new action signature.

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.

procedure

( git_signature_nownameemail)signature?

name:string?
email:string?
Create a new action signature with a timestamp of ’now’.

Call git_signature_free() to free the data.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /