libgit2.mailmap

Members

Functions

git_mailmap_add_entry
int git_mailmap_add_entry(libgit2.types.git_mailmap* mm, const(char)* real_name, const(char)* real_email, const(char)* replace_name, const(char)* replace_email)

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

git_mailmap_free
void git_mailmap_free(libgit2.types.git_mailmap* mm)

Free the mailmap and its associated memory.

git_mailmap_from_buffer
int git_mailmap_from_buffer(libgit2.types.git_mailmap** out_, const(char)* buf, size_t len)

Create a new mailmap instance containing a single mailmap file

git_mailmap_from_repository
int git_mailmap_from_repository(libgit2.types.git_mailmap** out_, libgit2.types.git_repository* repo)

Create a new mailmap instance from a repository, loading mailmap files based on the repository's configuration.

git_mailmap_new
int git_mailmap_new(libgit2.types.git_mailmap** out_)

Allocate a new mailmap object.

git_mailmap_resolve
int git_mailmap_resolve(const(char)** real_name, const(char)** real_email, const(libgit2.types.git_mailmap)* mm, const(char)* name, const(char)* email)

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

git_mailmap_resolve_signature
int git_mailmap_resolve_signature(libgit2.types.git_signature** out_, const(libgit2.types.git_mailmap)* mm, const(libgit2.types.git_signature)* sig)

Resolve a signature to use real names and emails with a mailmap.

Meta

License

GPL-2.0(Linking Exception)