libgit2

git_signature_new

Version:

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

Signature

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

Parameters

const char *
In
name

name of the person

const char *
In
email
In
time

time when the action happened

int
In
offset

timezone offset in minutes for the time

Returns

the new sig, NULL on out of memory

Versions