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

Mixed CRLF / LF line endings in source files #6

Open
lrowe opened this issue Mar 2, 2021 · 0 comments
Open

Mixed CRLF / LF line endings in source files #6

lrowe opened this issue Mar 2, 2021 · 0 comments

Comments

@lrowe
Copy link

lrowe commented Mar 2, 2021

Minor issue, but thought I'd report since it might make some commits from those on non-Windows machines look weird. In a git checkout on Mac, I'm seeing a mix of line endings in different files, e.g.:

% file src/wx-app.cc
src/wx-app.cc: c program text, ASCII text
% file src/wx-sdl2-joystick.c
src/wx-sdl2-joystick.c: c program text, ASCII text, with CRLF line terminators

I'd guess this might be an artifact from the mercurial to git migration.

Configuring Git to handle line endings suggests setting git config --global core.autocrlf true on Windows. (I've confirmed my settings on Mac/Linux are the suggested git config --global core.autocrlf input.)

One potential option for fixing: Rewrite git history to replace all CRLF to LF?. This would break any outstanding pull requests though (workaround would be cherry-picking the individual commits.)

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

1 participant