Web lists-archives.com

Re: is there a canonical doc about how to deal with whitespace issues?




On 6/8/2018 9:18 AM, Robert P. J. Day wrote:
   for one of my courses, i wanted to write a section about the various
techniques for dealing with whitespace issues in git, so i started
making a list, things like:

   - running "git diff --check"
   - "git commit --cleanup=" possibilities
   - config options like core.{eol,safecrlf,autocrlf}
   - i'm sure there are client-side hooks that can be mentioned

etc, etc.

   has anyone ever written a doc that collects these things in one
place? if not, i guess i have to write one.

rday


I don't know of a doc for whitespace issues, but the contributing guide on GitForWindows [1] recommends `git rebase --whitespace=fix`.

Thanks,
-Stolee

[1] https://github.com/git-for-windows/git/blob/master/CONTRIBUTING.md#polish-your-commits