- 
        Couldn't load subscription status. 
- Fork 913
Expose diff whitespace settings #2007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| if (compareOptions.WhitespaceMode != null) | ||
| { | ||
| if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreAllWhitespaces) | ||
| { | ||
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE; | ||
| } | ||
| else if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreWhitespaceChange) | ||
| { | ||
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_CHANGE; | ||
| } | ||
| else | ||
| { | ||
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_EOL; | ||
| } | ||
| } | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a thought:
| if (compareOptions.WhitespaceMode != null) | |
| { | |
| if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreAllWhitespaces) | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE; | |
| } | |
| else if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreWhitespaceChange) | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_CHANGE; | |
| } | |
| else | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_EOL; | |
| } | |
| } | |
| if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreAllWhitespaces) | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE; | |
| } | |
| else if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreWhitespaceChange) | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_CHANGE; | |
| } | |
| else if (compareOptions.WhitespaceMode == DiffWhitespaceMode.IgnoreWhitespaceEol) | |
| { | |
| options.Flags |= GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_EOL; | |
| } | 
| @GrimRob can you merge this? | 
| 
 No I don't have write access | 
| @bording can we ask you to merge this? It would help a lot as we had to use a forked version for the last year. | 
| There's also a similar PR from the original issue's OP: #1779 | 
Address #1778