File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,21 @@ private static GitDiffOptions BuildOptions(DiffModifiers diffOptions, FilePath[]
68
68
options . Flags |= GitDiffOptionFlags . GIT_DIFF_INDENT_HEURISTIC ;
69
69
}
70
70
71
+ switch ( compareOptions . PatchWhitespaceMode )
72
+ {
73
+ case PatchWhitespaceMode . DontIgnoreWhitespace :
74
+ break ;
75
+ case PatchWhitespaceMode . IgnoreAllWhitespace :
76
+ options . Flags |= GitDiffOptionFlags . GIT_DIFF_IGNORE_WHITESPACE ;
77
+ break ;
78
+ case PatchWhitespaceMode . IgnoreWhitespaceChange :
79
+ options . Flags |= GitDiffOptionFlags . GIT_DIFF_IGNORE_WHITESPACE_CHANGE ;
80
+ break ;
81
+ case PatchWhitespaceMode . IgnoreWhitespaceEol :
82
+ options . Flags |= GitDiffOptionFlags . GIT_DIFF_IGNORE_WHITESPACE_EOL ;
83
+ break ;
84
+ }
85
+
71
86
if ( matchedPathsAggregator != null )
72
87
{
73
88
options . NotifyCallback = matchedPathsAggregator . OnGitDiffNotify ;
You can’t perform that action at this time.
0 commit comments