Skip to content
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

Add whitespace ignoring #116

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glconti
Copy link

@glconti glconti commented Feb 5, 2017

  • change button icon to a nicer one

This change is Reviewable

@@ -2,20 +2,19 @@ namespace GitDiffMargin.Git
{
public class HunkRange
{
public HunkRange(string hunkRange, int contextLines)
Copy link
Owner

Choose a reason for hiding this comment

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

Why removing the contextLines?

Copy link
Author

Choose a reason for hiding this comment

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

It was always 0, while learning the code it made sense, do you fell like could it be useful in the future?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes in the future I wanted to introduce a possibility to define some value for it, which would be useful here

Copy link
Author

Choose a reason for hiding this comment

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

✅ restored context line parameter

@laurentkempe
Copy link
Owner

Having the new button on the contextual menu is confusing because you tend to think that it applies only to this hunk when it applies to the whole file
image

I think it would be better to have it only on the menu bar
image

@laurentkempe
Copy link
Owner

When ignoring whitespace is on and a white space is added at the limit of a hunk, it shows changes which it should not do

2017-03-20_21-44-34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants