Skip to content

🔧(git) set LF line endings for all text files #1032

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

Merged
merged 2 commits into from
Jun 11, 2025
Merged

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Jun 2, 2025

Purpose

Windows users are by default using CRLF line endings, which can cause issues with some tools and environments.
This commit sets the .gitattributes file to enforce LF line endings for all text files in the repository.

@AntoLC AntoLC self-assigned this Jun 2, 2025
@AntoLC AntoLC added the bug Something isn't working label Jun 2, 2025
@AntoLC AntoLC force-pushed the fix/force-endfiles-ln branch 2 times, most recently from 6921e03 to 09fd9b6 Compare June 2, 2025 17:42
@AntoLC AntoLC requested review from Copilot and lunika June 5, 2025 07:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Enforce consistent LF line endings across text files and document this change in the changelog.

  • Add a .gitattributes file to normalize all text files to LF and mark common binaries
  • Update CHANGELOG.md to record the new line-ending fix under the Unreleased section

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.gitattributes Configure Git to treat all text as LF and list binaries
CHANGELOG.md Add a “Fixed” entry for setting LF line endings
Comments suppressed due to low confidence (1)

CHANGELOG.md:11

  • Use ### Fixed instead of ## Fixed to match the heading level used for subsections under ## [Unreleased].
## Fixed

@AntoLC AntoLC force-pushed the fix/force-endfiles-ln branch from 09fd9b6 to 239dcd8 Compare June 11, 2025 11:07
AntoLC added 2 commits June 11, 2025 13:08
Windows users are by default using CRLF line endings,
which can cause issues with some tools and
environments. This commit sets the `.gitattributes`
file to enforce LF line endings for all text
files in the repository.
We add spacing bottom on editor to
avoid the last editing line being to close to
the bottom.
@AntoLC AntoLC force-pushed the fix/force-endfiles-ln branch from 239dcd8 to 0fd16b4 Compare June 11, 2025 11:08
@AntoLC AntoLC merged commit 0fd16b4 into main Jun 11, 2025
20 of 21 checks passed
@AntoLC AntoLC deleted the fix/force-endfiles-ln branch June 11, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants