libgit2

git_signature_from_buffer

Version:

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

Signature

int git_signature_from_buffer(git_signature **out, const char *buf);

Parameters

In
out

new signature

const char *
In
buf

signature string

Returns

int

0 on success, or an error code

Versions