File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -714,6 +714,8 @@ pub const GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES: u32 = 1 << 1;
714
714
pub const GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES : u32 = 1 << 2 ;
715
715
pub const GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES : u32 = 1 << 3 ;
716
716
pub const GIT_BLAME_FIRST_PARENT : u32 = 1 << 4 ;
717
+ pub const GIT_BLAME_USE_MAILMAP : u32 = 1 << 5 ;
718
+ pub const GIT_BLAME_IGNORE_WHITESPACE : u32 = 1 << 6 ;
717
719
718
720
#[ repr( C ) ]
719
721
#[ derive( Copy , Clone ) ]
Original file line number Diff line number Diff line change @@ -201,6 +201,18 @@ impl BlameOptions {
201
201
self . flag ( raw:: GIT_BLAME_FIRST_PARENT , opt)
202
202
}
203
203
204
+ /// Use mailmap file to map author and committer names and email addresses
205
+ /// to canonical real names and email addresses. The mailmap will be read
206
+ /// from the working directory, or HEAD in a bare repository.
207
+ pub fn use_mailmap ( & mut self , opt : bool ) -> & mut BlameOptions {
208
+ self . flag ( raw:: GIT_BLAME_USE_MAILMAP , opt)
209
+ }
210
+
211
+ /// Ignore whitespace differences.
212
+ pub fn ignore_whitespace ( & mut self , opt : bool ) -> & mut BlameOptions {
213
+ self . flag ( raw:: GIT_BLAME_IGNORE_WHITESPACE , opt)
214
+ }
215
+
204
216
/// Setter for the id of the newest commit to consider.
205
217
pub fn newest_commit ( & mut self , id : Oid ) -> & mut BlameOptions {
206
218
unsafe {
You can’t perform that action at this time.
0 commit comments