Skip to content

chore: add .gitattributes to normalize line endings#301

Merged
BillChirico merged 5 commits intoVolvoxCommunity:mainfrom
Mnehmos:chore/normalize-line-endings
Feb 4, 2026
Merged

chore: add .gitattributes to normalize line endings#301
BillChirico merged 5 commits intoVolvoxCommunity:mainfrom
Mnehmos:chore/normalize-line-endings

Conversation

@Mnehmos
Copy link
Contributor

@Mnehmos Mnehmos commented Jan 18, 2026

Summary

  • Add .gitattributes file to standardize line endings to LF across all text files
  • Prevents spurious diffs from Windows CRLF conversions

Test plan

  • File added and committed
  • CI passes

🤖 Generated with Claude Code


Important

Adds .gitattributes to enforce LF line endings for text files and preserve binary files.

  • Behavior:
    • Adds .gitattributes to enforce LF line endings for text files and preserve binary files.
    • Prevents CRLF to LF conversion issues on Windows.
  • File Types:
    • Sets LF for .ts, .tsx, .js, .jsx, .json, .md, .yml, .yaml, .css, .html, .sql.
    • Keeps .png, .jpg, .jpeg, .gif, .ico, .woff, .woff2, .ttf, .eot as binary.

This description was created by Ellipsis for bcae2ce. You can customize this summary. It will automatically update as commits are pushed.

Standardizes line endings to LF across all text files to prevent
spurious diffs from Windows CRLF conversions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 18, 2026

@Mnehmos is attempting to deploy a commit to the Volvox Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 18, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Added .gitattributes configuration for consistent line ending and file type handling across the repository.

Walkthrough

Adds a new .gitattributes file that enforces LF line endings for detected text and specific source/config formats and marks many binary/media formats as binary to preserve file content.

Changes

Cohort / File(s) Summary
Git configuration
/.gitattributes
New file enforcing LF line endings for auto-detected text and common source/config formats (TS, JS, JSON, MD, YAML, CSS, HTML, SQL, etc.) and marking numerous image, archive, media, font, executable and database formats as binary.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title clearly and concisely summarizes the main change: adding a .gitattributes file to normalize line endings.
Description check ✅ Passed The pull request description is directly related to the changeset, providing clear context about why the .gitattributes file is being added and what it accomplishes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.gitattributes:
- Around line 17-26: Update the .gitattributes binary list to include other
common binary types by adding patterns such as *.mp4, *.mov, *.avi, *.mkv,
*.webm, *.pdf, *.docx, *.xlsx, *.pptx, *.zip, *.tar, *.gz, *.rar, *.exe, *.dll,
*.so, *.dylib, *.class, *.jar, *.war, *.pyc, *.pyo, *.db, *.sqlite, *.otf and
*.psd so these files are treated as binary; modify the existing binary block
(the lines with *.png, *.jpg, etc.) to append these additional patterns and
ensure each pattern is followed by the "binary" attribute for consistent
handling by Git.

@Mnehmos Mnehmos force-pushed the chore/normalize-line-endings branch from a8a409a to 90ff2c0 Compare February 2, 2026 23:33
Add all common binary formats as suggested in PR review:
- Archives: zip, tar, gz, rar
- Executables/libraries: exe, dll, so, dylib
- Documents: pdf, docx, xlsx, pptx
- Video: mp4, webm, mov, avi, mkv
- Audio: mp3, wav
- Java: class, jar, war
- Python: pyc, pyo
- Databases: db, sqlite
- Other: webp, avif, otf, psd

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.gitattributes:
- Around line 4-15: Update the .gitattributes text file list to include
additional common text formats so line endings are normalized for files that are
hand-edited; specifically add patterns such as *.svg text eol=lf (important),
plus other useful text globs like *.txt text eol=lf, *.env text eol=lf, *.lock
text eol=lf and optionally *.pem *.crt *.conf as text eol=lf to cover common
config/certificate files; modify the existing block that contains the globs
(*.ts, *.js, *.json, etc.) to include these new patterns so they follow the same
normalization rules.

Add common text formats for line ending normalization:
- svg (important for hand-edited vector graphics)
- txt, env, lock (common config/dependency files)
- conf, pem, crt (config and certificate files)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@BillChirico BillChirico merged commit a231f87 into VolvoxCommunity:main Feb 4, 2026
2 of 3 checks 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.

2 participants