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;
11721172pub const GIT_DIFF_INCLUDE_UNREADABLE : git_diff_option_t = 1 << 16 ;
11731173pub const GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED : git_diff_option_t = 1 << 17 ;
11741174pub 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 ;
11751176pub const GIT_DIFF_FORCE_TEXT : git_diff_option_t = 1 << 20 ;
11761177pub const GIT_DIFF_FORCE_BINARY : git_diff_option_t = 1 << 21 ;
11771178pub 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 {
814814 self . flag ( raw:: GIT_DIFF_IGNORE_WHITESPACE_EOL , ignore)
815815 }
816816
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+
817822 /// When generating patch text, include the content of untracked files.
818823 ///
819824 /// This automatically turns on `include_untracked` but it does not turn on
You can’t perform that action at this time.
0 commit comments