Mailmap

  • class pygit2.Mailmap
  • Mailmap object.

    • addentry(_real_name=None, real_email=None, replace_name=None, replace_email)
    • Add a new entry to the mailmap, overriding existing entries.

    • static frombuffer(_buffer: str) → Mailmap

    • Parse a passed-in buffer and construct a mailmap object.

    • static fromrepository(_repository: Repository) → Mailmap

    • Create a new mailmap instance from a repository, loading mailmap files based on the repository’s configuration.

      • Mailmaps are loaded in the following order:
        • ‘.mailmap’ in the root of the repository’s working directory, if present.
          • The blob object identified by the ‘mailmap.blob’ config entry, if set.
          • [NOTE: ‘mailmap.blob’ defaults to ‘HEAD:.mailmap’ in bare repositories]
        • The path in the ‘mailmap.file’ config entry, if set.
    • resolve(name: str, email: str) -> (str, str)
    • Resolve name & email to a real name and email.

    • resolvesignature(_sig: Signature) → Signature

    • Resolve signature to real name and email.