Skip to content

Commit c18d12e

Browse files
committed
fix: allow mailmaps to change the email by name and email (#1417)
1 parent 2ae3455 commit c18d12e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gix-mailmap/src/parse.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ fn parse_line(line: &BStr, line_number: usize) -> Result<Entry<'_>, Error> {
7777
(Some(proper_name), Some(proper_email), Some(commit_name), Some(commit_email)) => {
7878
Entry::change_name_and_email_by_name_and_email(proper_name, proper_email, commit_name, commit_email)
7979
}
80+
(None, Some(proper_email), Some(commit_name), Some(commit_email)) => {
81+
Entry::change_email_by_name_and_email(proper_email, commit_name, commit_email)
82+
}
8083
_ => {
8184
return Err(Error::Malformed {
8285
line_number,

0 commit comments

Comments
 (0)