- Notifications
You must be signed in to change notification settings - Fork913
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 ourterms of service andprivacy 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?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| if(compareOptions.WhitespaceMode!=null) | ||
| { | ||
| if(compareOptions.WhitespaceMode==DiffWhitespaceMode.IgnoreAllWhitespaces) | ||
| { | ||
| options.Flags|=GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE; | ||
| } | ||
| elseif(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; | |
| } | |
| elseif(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; | |
| } | |
| elseif(compareOptions.WhitespaceMode==DiffWhitespaceMode.IgnoreWhitespaceChange) | |
| { | |
| options.Flags|=GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_CHANGE; | |
| } | |
| elseif(compareOptions.WhitespaceMode==DiffWhitespaceMode.IgnoreWhitespaceEol) | |
| { | |
| options.Flags|=GitDiffOptionFlags.GIT_DIFF_IGNORE_WHITESPACE_EOL; | |
| } |
darthkurak commentedFeb 28, 2024
@GrimRob can you merge this? |
GrimRob commentedFeb 28, 2024
No I don't have write access |
starkpl commentedMar 6, 2024
@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. |
amis92 commentedMar 25, 2024
There's also a similar PR from the original issue's OP:#1779 |
Address#1778