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

detect-newline is making my git diffs look bad #387

Open
TheBrenny opened this issue Aug 20, 2021 · 3 comments
Open

detect-newline is making my git diffs look bad #387

TheBrenny opened this issue Aug 20, 2021 · 3 comments

Comments

@TheBrenny
Copy link

There was a decision made to use detect-newline in issue #137 which was subsequently merged in #153.

This is handy, but it would be nice to override this setting to be able to enforce \n or \r\n across all contributers. Here's a screenshot of what my git diffs look like for context:
git diff

@pstanton
Copy link

pstanton commented Oct 6, 2021

Every time my colleague builds or I build there is a new commit on our "map" file because of line ending characters. we NEED a way to force it to use a consistent scheme always. I personally would choose \n.

@TheBrenny
Copy link
Author

A good workaround for now is to use git's config option core.autocrlf. Then use VSCode to set the line ending to be LF or CRLF.

> git config core.autocrlf false

@pstanton
Copy link

pstanton commented Oct 6, 2021

A good workaround for now is to use git's config option core.autocrlf. Then use VSCode to set the line ending to be LF or CRLF.

Thanks, but neither applicable for my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants