I had an issue with a file that had inconsistent line ending. My file would show a
^M for every line ending. I ran into this article that shows how to get rid of the
^M character and set the buffer file encoding to fix the issue.
However, I still see the
^M character when I stage and commit my file in Magit. Magit show a file that has
^M as a line ending character even when I fixed this in the file buffer.
Do I need to make Magit aware of my file system encoding. If so, how?
Issue seen in macOS Mojave and Emacs 26.1.