Back
I love to use git diff -w to ignore whitespace differences. But, I just noticed that it ignores even whitespace differences in the middle of lines. How could I only ignore whitespace differences that come at the start (^) or end ($) of lines?
You can use this for end of line:
$ git diff --ignore-space-at-eol
Instead of what are you using currently:
$ git diff -w (--ignore-all-space)
But if you want a built in solution for start of line then my friends you are out of luck.
31k questions
32.8k answers
501 comments
693 users