Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
darthkurak wants to merge1 commit intolibgit2:master
base:master
Choose a base branch
Loading
fromdarthkurak:feature/more-diff-settings

Conversation

@darthkurak
Copy link

Address#1778

Comment on lines +61 to +75
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;
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Just a thought:

Suggested change
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
Copy link
Author

@GrimRob can you merge this?

@GrimRob
Copy link

@GrimRob can you merge this?

No I don't have write access

@starkpl
Copy link

@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
Copy link

There's also a similar PR from the original issue's OP:#1779

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@amis92amis92amis92 left review comments

@GrimRobGrimRobGrimRob approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@darthkurak@GrimRob@starkpl@amis92

[8]ページ先頭

©2009-2025 Movatter.jp