Explorar o código

Add mailmap docs

Vadim Markovtsev %!s(int64=7) %!d(string=hai) anos
pai
achega
6e7f595215
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      mailmap.go

+ 4 - 0
mailmap.go

@@ -6,6 +6,10 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"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 {
 func ParseMailmap(contents string) map[string]object.Signature {
   mm := map[string]object.Signature{}
   mm := map[string]object.Signature{}
 	lines := strings.Split(contents, "\n")
 	lines := strings.Split(contents, "\n")