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

Turn dos files into unix files #14484

Merged
merged 2 commits into from Mar 31, 2024
Merged

Turn dos files into unix files #14484

merged 2 commits into from Mar 31, 2024

Conversation

cx384
Copy link
Contributor

@cx384 cx384 commented Mar 22, 2024

While I wrote a script to check for trailing whitespace (and other file format things. e.g. for png meta data) to hopefully add it to the Minetest GitHub workflow someday, I noticed that some dos files sneaked into the codebase (CRLF instead of just LF).
To me, this is annoying, since I don't like the format and they have to be treated differently for my script, but if you don't care you can also close this PR.

So this PR Turns them into proper Unix files to have at least some consistency.

I also added it to .gitattributes, to not add CRLF files in the future.
(Maybe text=auto would be enough, but I don't see a reason to not use eol=lf.)

To do

This PR Ready for Review.

How to test

git ls-files | xargs file | grep CRLF
or git ls-files --eol | grep crlf

(It's also interesting how inconsistent the filetyps are file -k <file>)

@Zughy Zughy added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines Code quality labels Mar 22, 2024
.gitattributes Show resolved Hide resolved
@appgurueu appgurueu merged commit d4b10db into minetest:master Mar 31, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code quality Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements One approval ✅ ◻️ Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants