libgit2

git_mailmap_add_entry

Version:

Add a single entry to the given mailmap object. If the entry already exists, it will be replaced with the new entry.

Signature

int git_mailmap_add_entry(git_mailmap *mm, const char *real_name, const char *real_email, const char *replace_name, const char *replace_email);

Parameters

In
mm

mailmap to add the entry to

const char *
In
real_name

the real name to use, or NULL

const char *
In
real_email

the real email to use, or NULL

const char *
In
replace_name

the name to replace, or NULL

const char *
In
replace_email

the email to replace

Returns

int

0 on success, or an error code

Versions