Jelajahi Sumber

Add mailmap docs

Vadim Markovtsev 7 tahun lalu
induk
melakukan
6e7f595215
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      mailmap.go

+ 4 - 0
mailmap.go

@@ -6,6 +6,10 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 )
 
+// ParseMailmap parses the contents of .mailmap and returns the mapping
+// between signature parts. It does *not* follow the full signature
+// matching convention, that is, developers are identified by email
+// and by name independently.
 func ParseMailmap(contents string) map[string]object.Signature {
   mm := map[string]object.Signature{}
 	lines := strings.Split(contents, "\n")