Add GIT_BLAME_USE_MAILMAP flag (#676) (#678)

The `GIT_BLAME_USE_MAILMAP` blame option flag was introduced in libgit2 v0.28

Change type: #minor

(cherry picked from commit b46ebfab8c)

Co-authored-by: Suhaib Mujahid <suhaibmujahid@gmail.com>
This commit is contained in:
github-actions[bot] 2020-11-07 15:04:23 -08:00 committed by GitHub
parent bcfa256837
commit 2bf0e14e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ const (
BlameTrackCopiesSameCommitCopies BlameOptionsFlag = C.GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
BlameTrackCopiesAnyCommitCopies BlameOptionsFlag = C.GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
BlameFirstParent BlameOptionsFlag = C.GIT_BLAME_FIRST_PARENT
BlameUseMailmap BlameOptionsFlag = C.GIT_BLAME_USE_MAILMAP
)
func (v *Repository) BlameFile(path string, opts *BlameOptions) (*Blame, error) {