@@ -25,22 +25,37 @@ impl<'a> Entry<'a> {
2525/// Constructors indicating what kind of mapping is created.
2626///
2727/// Only these combinations of values are valid.
28- #[ allow( missing_docs) ]
2928impl < ' a > Entry < ' a > {
29+ /// An entry that changes the name by an email.
3030 pub fn change_name_by_email ( proper_name : impl Into < & ' a BStr > , commit_email : impl Into < & ' a BStr > ) -> Self {
3131 Entry {
3232 new_name : Some ( proper_name. into ( ) ) ,
3333 old_email : commit_email. into ( ) ,
3434 ..Default :: default ( )
3535 }
3636 }
37+ /// An entry that changes the email by an email.
3738 pub fn change_email_by_email ( proper_email : impl Into < & ' a BStr > , commit_email : impl Into < & ' a BStr > ) -> Self {
3839 Entry {
3940 new_email : Some ( proper_email. into ( ) ) ,
4041 old_email : commit_email. into ( ) ,
4142 ..Default :: default ( )
4243 }
4344 }
45+ /// An entry that changes the email by a name and email.
46+ pub fn change_email_by_name_and_email (
47+ proper_email : impl Into < & ' a BStr > ,
48+ commit_name : impl Into < & ' a BStr > ,
49+ commit_email : impl Into < & ' a BStr > ,
50+ ) -> Self {
51+ Entry {
52+ new_email : Some ( proper_email. into ( ) ) ,
53+ old_email : commit_email. into ( ) ,
54+ old_name : Some ( commit_name. into ( ) ) ,
55+ ..Default :: default ( )
56+ }
57+ }
58+ /// An entry that changes a name and the email by an email.
4459 pub fn change_name_and_email_by_email (
4560 proper_name : impl Into < & ' a BStr > ,
4661 proper_email : impl Into < & ' a BStr > ,
@@ -53,7 +68,7 @@ impl<'a> Entry<'a> {
5368 ..Default :: default ( )
5469 }
5570 }
56-
71+ /// An entry that changes a name and email by a name and email.
5772 pub fn change_name_and_email_by_name_and_email (
5873 proper_name : impl Into < & ' a BStr > ,
5974 proper_email : impl Into < & ' a BStr > ,
0 commit comments