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

Option to ignore whitespace difference #150

Closed
glenjamin opened this issue Nov 16, 2012 · 1 comment
Closed

Option to ignore whitespace difference #150

glenjamin opened this issue Nov 16, 2012 · 1 comment

Comments

@glenjamin
Copy link

A little tick-box on the diff viewer that allowed white-space ignoring would be nice :)

@davvid davvid closed this as completed in a8bc3ef Mar 8, 2013
@souch
Copy link

souch commented Feb 21, 2020

I managed to ignore whitespace change by adding -w (--ignore-all-space) to the git argument list

add in file cola/git.py at line 336 :

        # Prepare the argument list
        git_args = [
            GIT,
            '-c', 'diff.suppressBlankEmpty=false',
            '-c', 'log.showSignature=false',
            dashify(cmd),
        ]
        # ignore whitespace change
        cmds_that_have_ignore_all_space = ['diff', 'log', 'show', 'diff-files', 'diff-index', 'diff-tree']
        if cmd in cmds_that_have_ignore_all_space:
            git_args.append('-w')

I'll see later if I can make this as an option in a clean pull request.

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

No branches or pull requests

3 participants