File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1172,6 +1172,7 @@ pub const GIT_DIFF_UPDATE_INDEX: git_diff_option_t = 1 << 15;
1172
1172
pub const GIT_DIFF_INCLUDE_UNREADABLE : git_diff_option_t = 1 << 16 ;
1173
1173
pub const GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED : git_diff_option_t = 1 << 17 ;
1174
1174
pub const GIT_DIFF_INDENT_HEURISTIC : git_diff_option_t = 1 << 18 ;
1175
+ pub const GIT_DIFF_IGNORE_BLANK_LINES : git_diff_option_t = 1 << 19 ;
1175
1176
pub const GIT_DIFF_FORCE_TEXT : git_diff_option_t = 1 << 20 ;
1176
1177
pub const GIT_DIFF_FORCE_BINARY : git_diff_option_t = 1 << 21 ;
1177
1178
pub const GIT_DIFF_IGNORE_WHITESPACE : git_diff_option_t = 1 << 22 ;
Original file line number Diff line number Diff line change @@ -814,6 +814,11 @@ impl DiffOptions {
814
814
self . flag ( raw:: GIT_DIFF_IGNORE_WHITESPACE_EOL , ignore)
815
815
}
816
816
817
+ /// Ignore blank lines
818
+ pub fn ignore_blank_lines ( & mut self , ignore : bool ) -> & mut DiffOptions {
819
+ self . flag ( raw:: GIT_DIFF_IGNORE_BLANK_LINES , ignore)
820
+ }
821
+
817
822
/// When generating patch text, include the content of untracked files.
818
823
///
819
824
/// This automatically turns on `include_untracked` but it does not turn on
You can’t perform that action at this time.
0 commit comments