To hide the awful ^M
characters from git diff
, one has to config:
[core]
whitespace = cr-at-eol
But they are still displayed in git grep
output.
How to solve that?
EDIT -- The grep I'm running is:
git grep -i --line-number --break --heading -C 1 <PATTERN>
in Cygwin (on Windows) with less -R
as pager.