mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
mailmap: Integrate mailmaps with blame and signatures
This commit is contained in:
@@ -172,6 +172,34 @@ GIT_EXTERN(const git_signature *) git_commit_committer(const git_commit *commit)
|
||||
*/
|
||||
GIT_EXTERN(const git_signature *) git_commit_author(const git_commit *commit);
|
||||
|
||||
/**
|
||||
* Get the committer of a commit, using the mailmap to map names and email
|
||||
* addresses to canonical real names and email addresses.
|
||||
*
|
||||
* Call `git_signature_free` to free the signature.
|
||||
*
|
||||
* @param out a pointer to store the resolved signature.
|
||||
* @param commit a previously loaded commit.
|
||||
* @param mailmap the mailmap to resolve with. (may be NULL)
|
||||
* @return 0 or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_commit_committer_with_mailmap(
|
||||
git_signature **out, const git_commit *commit, const git_mailmap *mailmap);
|
||||
|
||||
/**
|
||||
* Get the author of a commit, using the mailmap to map names and email
|
||||
* addresses to canonical real names and email addresses.
|
||||
*
|
||||
* Call `git_signature_free` to free the signature.
|
||||
*
|
||||
* @param out a pointer to store the resolved signature.
|
||||
* @param commit a previously loaded commit.
|
||||
* @param mailmap the mailmap to resolve with. (may be NULL)
|
||||
* @return 0 or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_commit_author_with_mailmap(
|
||||
git_signature **out, const git_commit *commit, const git_mailmap *mailmap);
|
||||
|
||||
/**
|
||||
* Get the full raw text of the commit header.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user