libgit2

git_signature_new

Version:

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.

Signature

int git_signature_new(git_signature **out, const char *name, const char *email, git_time_t time, int offset);

Parameters

In
out

new signature, in case of error NULL

const char *
In
name

name of the person

const char *
In
email

email of the person

In
time

time when the action happened

int
In
offset

timezone offset in minutes for the time

Returns

int

0 or an error code

Versions