libgit2

git_signature_now

Version:

Create a new action signature with a timestamp of 'now'.

Call git_signature_free() to free the data.

Signature

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

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

Returns

int

0 or an error code

Versions