git_mailmap_from_repository

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

Mailmaps are loaded in the following order: 1. '.mailmap' in the root of the repository's working directory, if present. 2. The blob object identified by the 'mailmap.blob' config entry, if set. [NOTE: 'mailmap.blob' defaults to 'HEAD:.mailmap' in bare repositories] 3. The path in the 'mailmap.file' config entry, if set.

extern (C) nothrow @nogc
int
git_mailmap_from_repository

Parameters

out_ libgit2_d.types.git_mailmap**

pointer to store the new mailmap

repo libgit2_d.types.git_repository*

repository to load mailmap information from

Return Value

Type: int

0 on success, or an error code

Meta