Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac style line endings present #3

Open
ghost opened this issue May 26, 2017 · 1 comment
Open

Mac style line endings present #3

ghost opened this issue May 26, 2017 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented May 26, 2017

pom.xml contains Mac-style line endings (i.e. CR, aka '\r' or '^M'). These pollute the output of git diff, which expects UNIX-style line endings (i.e. LF, aka '\n'):

$ wc -l pom.xml 
124 pom.xml
$ grep '\r' pom.xml | wc -l
68
$ grep '\n' pom.xml | wc -l
69
$ grep '\n\r' pom.xml | wc -l
0
$ grep '\r\n' pom.xml | wc -l
0

Looks like about 200 source code files have this issue:

$ grep -rl '\r' src | wc -l
202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants