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

Added gitattributes to normalize all files to lf #3386

Merged
merged 2 commits into from Jun 29, 2023
Merged

Added gitattributes to normalize all files to lf #3386

merged 2 commits into from Jun 29, 2023

Conversation

njs-guy
Copy link
Contributor

@njs-guy njs-guy commented Jun 28, 2023

I was trying to build this on Windows through Docker and WSL and I ran into the problem that the docker_update.sh was using crlf line endings. I converted it to lf no problem but it's probably better to just normalize the line endings of everything for better consistency. I'm not sure if this breaks anything in the rest of the code though, so I could edit this to only effect docker/docker_update.sh if necessary. Either way, having git normalize the file to lf makes it less annoying to build on Windows/Mac.

njs-guy and others added 2 commits June 28, 2023 11:29
@dessalines dessalines enabled auto-merge (squash) June 28, 2023 17:08
@TehPers
Copy link

TehPers commented Jun 29, 2023

In the past, I've always had to run git add --renormalize . to renormalize all the files in the repository in addition to adding a .gitattributes file. Naturally, this would result in a lot of files being changed (since all the line endings would be updated). Is that something this PR wants to do as well?

@Nutomic Nutomic disabled auto-merge June 29, 2023 08:15
@Nutomic Nutomic merged commit 0464c46 into LemmyNet:main Jun 29, 2023
1 check passed
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.

None yet

4 participants