Crate gix_mailmap

Source
Expand description

Parse .mailmap files as used in git repositories and remap names and emails using an accelerated data-structure.

§Feature Flags

  • serde — Data structures implement serde::Serialize and serde::Deserialize.

Modules§

parse
snapshot

Structs§

Entry
An typical entry of a mailmap, which always contains an old_email by which the mapping is performed to replace the given new_name and new_email.
Snapshot
A data-structure to efficiently store a list of entries for optimal, case-insensitive lookup by email and optionally name to find mappings to new names and/or emails.

Functions§

parse
Parse the given buf of bytes line by line into mapping Entries.
parse_ignore_errors
Similar to parse(), but will skip all lines that didn’t parse correctly, silently squelching all errors.