libgit2

git_repository_ident

Version:

Retrieve the configured identity to use for reflogs

The memory is owned by the repository and must not be freed by the user.

Signature

int git_repository_ident(const char **name, const char **email, const git_repository *repo);

Parameters

const char **
Out
name

where to store the pointer to the name

const char **
Out
email

where to store the pointer to the email

In
repo

the repository

Returns

int

0 or an error code

Versions