Git – ignore whitespace
| 13-Jun-2012 | Posted by Sonia Hamilton under Git, Python |
My new favourite git option:
% git diff -w
Ignore white space in diffs. Unfortunately, there doesn’t seem to be an option for just ignoring whitespace changes at the start of line – would be handy for Python.
Share This
-w is a diff option not so much a git option.
An even better option is -b “ignore changes in amount
of white space” which I believe is exactly what you’re looking for.
% git diff -b
Thanks Stuart! Long time no see :-)