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 t
A more robust and versatile version of @"Justin C"s answer is:
anw = !git diff -U0 -w --no-color -- \"$@\" | git apply --cached --ignore-whitespace --unidiff-zero "#"
See this answer for more.