git_signature_from_buffer

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

extern (C) nothrow @nogc public
int
git_signature_from_buffer

Parameters

out_ libgit2.types.git_signature**

new signature

buf const(char)*

signature string

Return Value

Type: int

0 on success, git_error_code.GIT_EINVALID if the signature is not parseable, or an error code

Meta