Method: Mailmap::Map#resolve
- Defined in:
- lib/mailmap/map.rb
permalink #resolve(commit_name_or_nil, commit_email) ⇒ (String, String), (nil, String)
Like git-check-mailmap
command, look up the person’s canonical name and email address. If found, return them; otherwise return the input as-is.
67 68 69 70 71 72 |
# File 'lib/mailmap/map.rb', line 67 def resolve(commit_name_or_nil, commit_email) proper_name, proper_email = lookup(commit_name_or_nil, commit_email) proper_name ||= commit_name_or_nil proper_email ||= commit_email [proper_name, proper_email] end |