How can you combine git add patch -p mode with diff's ignore-all-space

Viewed 5154

How can I do git add with patch mode but ignoring whitespace changes.

The use case is for when you've reformatted a file and also made changes to it. I want to commit the real code changes separately first (as shown by git diff -w path) and then commit the reformatting as a separate commit.

4 Answers
Related