Note that there are some explanatory texts on larger screens.

plurals
  1. POgit whitespace woes
    text
    copied!<h2>Conflicts on whitespace suck</h2> <p>Whitespace has ended up being a horrible pain for me while using git.</p> <pre><code>git config apply.whitespace=strip </code></pre> <p>seems to highten your chances of getting conflicts (as you strip unneeded whitespace and then other collaborators see the stripped whitespace as a change to their commits?)</p> <p>I've tried a few other configurations for <code>apply.whitespace</code> in the past, and maybe one of the other configs solves this, or maybe there's other settings to deal with whitespace that I just haven't come across, but I haven't yet found a clear way to get where I want to be.</p> <h2>I want to silently resolve whitespace conflicts:</h2> <p>I never want to have another conflict on whitespace. If another committer alters whitespace, or I alter whitespace and then have to merge against my own conflicts, <em>i really don't want to know about it</em>. If someone changes my code from K&amp;R style to One True Brace style by changing whitespace, I'd prefer git allow either whitespace setup to win out over having to see conflicts about it. I just don't care enough about whitespace to want to see conflicts about it.</p> <p>So... ...is there any way that I can configure git to do that? </p> <p><em>If it makes any difference, here's my git version, and my current config:</em></p> <pre><code>tchalvak:~/ninjawars$ git --version git version 1.6.0.4 tchalvak:~/ninjawars$ git config --list color.branch=auto color.diff=auto color.status=auto color.branch.current=yellow reverse color.branch.local=yellow color.branch.remote=green color.diff.meta=yellow bold color.diff.frag=magenta bold color.diff.old=red bold color.diff.new=green bold color.status.added=yellow color.status.changed=green color.status.untracked=cyan gui.recentrepo=/home/tchalvak/zd/htdocs/cms apply.whitespace=strip user.name=**** user.email=**** alias.co=checkout github.user=tchalvak github.token=**** core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=...@github.com:tchalvak/ninjawars.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.master.remote=origin branch.master.merge=refs/heads/master </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload