Skip to content

GIT: normalize eol#30

Open
LegalizeAdulthood wants to merge 2 commits intoopen-simh:masterfrom
LegalizeAdulthood:legalize-normalize-eol
Open

GIT: normalize eol#30
LegalizeAdulthood wants to merge 2 commits intoopen-simh:masterfrom
LegalizeAdulthood:legalize-normalize-eol

Conversation

@LegalizeAdulthood
Copy link
Copy Markdown

The files in the repository had a mixture of line endings -- some were LF, some were CR LF.

This PR adds a .gitattributes that specifies that Visual Studio project and solution files are explicitly CR LF and the remainder are text=auto.

The EOL for files in the repository are normalized to LF line endings.

When you check out the repository on unix, you get text files with LF line endings.
When you check out the repository on Windows, you get text files with CR LF line endings.

git marshals back and forth when you push/pull from the repository on either platform.

@LegalizeAdulthood
Copy link
Copy Markdown
Author

Given that this change is likely to cause conflicts in other PRs, it should probably be applied after other PRs are merged.

- Visual Studio project/solution files are always CRLF
- all others are auto
@LegalizeAdulthood LegalizeAdulthood force-pushed the legalize-normalize-eol branch from 324838a to ad5d8dc Compare May 4, 2026 16:19
@LegalizeAdulthood LegalizeAdulthood changed the title normalize eol GIT: normalize eol May 4, 2026
@LegalizeAdulthood
Copy link
Copy Markdown
Author

I updated the commit messages to follow the preferred format

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

Successfully merging this pull request may close these issues.

1 participant