libgit2

git_mailmap_resolve

Version:

Resolve a name and email to the corresponding real name and email.

The lifetime of the strings are tied to mm, name, and email parameters.

Signature

int git_mailmap_resolve(const char **real_name, const char **real_email, const git_mailmap *mm, const char *name, const char *email);

Parameters

const char **
In
real_name

pointer to store the real name

const char **
In
real_email

pointer to store the real email

In
mm

the mailmap to perform a lookup with (may be NULL)

const char *
In
name

the name to look up

const char *
In
email

the email to look up

Returns

int

0 on success, or an error code

Versions