mailmap

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mailmap provides parsing and resolution of git .mailmap files. See https://git-scm.com/docs/gitmailmap for the specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailmap

type Mailmap struct {
	// contains filtered or unexported fields
}

Mailmap holds parsed .mailmap entries and resolves author identities.

func New

func New() *Mailmap

New creates an empty Mailmap.

func Parse

func Parse(r io.Reader) (*Mailmap, error)

Parse reads a .mailmap file and returns a Mailmap for resolving identities.

func (*Mailmap) Resolve

func (m *Mailmap) Resolve(name, email string) (string, string)

Resolve maps an author's name and email to their canonical identity. If no mapping exists, the original values are returned unchanged.

Jump to

Keyboard shortcuts

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