Git diff ignore whitespace-Git diff -w ignore whitespace only at start & end of lines
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 use git diff ignore whitespace to ignore whitespace differences that come at the start (^) or end ($) of lines?
You can use git diff ignore whitespace for end of the line as shown below:
$ git diff --ignore-space-at-eol
Instead of using it for all space:
$ git diff -w (--ignore-all-space)
Unfortunately, there is no built in solution for start of line.