I am doing a rebase of a big change, with a lot of whitespace changes. In order for the merge to work at all, I need -Xignore-all-space.
According to git --help rebase:
ignore-space-change, ignore-all-space, ignore-space-at-eol
Treats lines with the indicated type of whitespace change as unchanged for the sake of a three-way merge. Whitespace changes mixed with other changes to a line are not ignored. See also git-diff(1) -b, -w, and --ignore-space-at-eol.
o If their version only introduces whitespace changes to a line, our version is used;
o If our version introduces whitespace changes but their version includes a substantial change, their version is used;
o Otherwise, the merge proceeds in the usual way.
However, when in a rebase, theirs and ours are swapped from their usual meaning. This means that in my rebase, all my whitespace changes are lost, since they are on their side of the merge.
How do I get git-rebase to keep my whitespace changes?