libgit2

git_signature_now

Version:

Create a new action signature with a timestamp of 'now'. The signature must be freed manually or using git_signature_free

Signature

int git_signature_now(git_signature **sig_out, const char *name, const char *email);

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

Returns

int

GIT_SUCCESS or an error code

Versions