Skip to content

Commit 2bf0e14

Browse files
Add GIT_BLAME_USE_MAILMAP flag (libgit2#676) (libgit2#678)
The `GIT_BLAME_USE_MAILMAP` blame option flag was introduced in libgit2 v0.28 Change type: #minor (cherry picked from commit b46ebfa) Co-authored-by: Suhaib Mujahid <[email protected]>
1 parent bcfa256 commit 2bf0e14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blame.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const (
4747
BlameTrackCopiesSameCommitCopies BlameOptionsFlag = C.GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
4848
BlameTrackCopiesAnyCommitCopies BlameOptionsFlag = C.GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
4949
BlameFirstParent BlameOptionsFlag = C.GIT_BLAME_FIRST_PARENT
50+
BlameUseMailmap BlameOptionsFlag = C.GIT_BLAME_USE_MAILMAP
5051
)
5152

5253
func (v *Repository) BlameFile(path string, opts *BlameOptions) (*Blame, error) {

0 commit comments

Comments
 (0)