libgit2

git_signature_new

Version:

Create a new action signature. The signature must be freed manually or using git_signature_free

Signature

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

Parameters

In
sig_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