Add GIT_BLAME_USE_MAILMAP flag (#676)

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

Change type: #minor

(cherry picked from commit b46ebfab8c)
This commit is contained in:
Suhaib Mujahid 2020-11-07 17:54:23 -05:00 committed by lhchavez
parent bcfa256837
commit 62fbde321c
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) {