Closed
Description
We recommend using git config --global --add core.whitespace fix
in doc/onboarding.md, but I can't find any mention of that setting in the git docs. There is a core.whitespace
, but it doesn't seem to have a fix option. However, apply.whitespace
does, see the apply docs.
I think what we need is git config --global --add apply.whitespace fix
. Note that this only fixes whitespace when you apply a patch. Rebase has a whitespace option as well, but it's apparently incompatible with --interactive
, so I'm not sure if we should use it.
We might also consider suggesting git config --global diff.wsErrorHighlight all
, which makes git diff
and git show
highlight whitespace errors (see docs).
cc/ @Fishrock123 (from git blame)