mailmap

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mailmap implements a basic git mailmap parser. See this page: https://git-scm.com/docs/gitmailmap for additional context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailMap

type MailMap map[NameAndEmail][]NameAndEmail

MailMap maps names and emails found in commits to "proper" names and emails. The map key is the "proper" pair, coresponding to a list of pairs to be matched.

func Parse

func Parse(input string) (MailMap, error)

Parse takes an input mailmap string and parses it into a MailMap struct

func (MailMap) Lookup

func (mm MailMap) Lookup(commitLookup NameAndEmail) NameAndEmail

Lookup receives a name/email pair and finds the first proper name/email pair

type NameAndEmail

type NameAndEmail struct {
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL