Skip to content

Conversation

gemmaro
Copy link
Contributor

@gemmaro gemmaro commented Jul 12, 2025

Problem

Ruby/C/C++ source files were showing spurious changes on Linux due to inconsistent line ending handling.

Solution

  • Updated .gitattributes to enforce eol=crlf for *.rb, *.c, and *.h files
  • Normalized existing files with git add --renormalize .

Impact

  • Windows devs: No changes needed
  • Linux devs: No more unwanted file modifications
  • Large diff: Line ending normalization only - no actual code changes

Action Required

After merging, run git reset --hard HEAD to refresh your working directory.

@cfis
Copy link
Member

cfis commented Jul 12, 2025

I'm fine with this, but do Linux line endings instead (so lf).

@gemmaro
Copy link
Contributor Author

gemmaro commented Jul 12, 2025

Updated! Just modified commits that converts line endings to LF. Thanks for the suggestion.

@cfis cfis merged commit 448f47a into xml4r:master Jul 13, 2025
6 of 9 checks passed
@cfis
Copy link
Member

cfis commented Jul 13, 2025

Thanks!

@gemmaro gemmaro deleted the git/attrs branch July 13, 2025 05:54
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.

2 participants