Skip to content

chore: add .gitattributes for cross-platform line ending consistency#208

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/add-gitattributes-20260623
Open

chore: add .gitattributes for cross-platform line ending consistency#208
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/add-gitattributes-20260623

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Adds a standard .gitattributes file to normalize line endings across platforms and declare binary file types.

Why

Without a .gitattributes file:

  • Developers on Windows may accidentally commit CRLF line endings
  • Binary files could be corrupted by Git's auto-CRLF conversion
  • There is no machine-readable specification for file type handling

This file ensures all text files use LF line endings (matching the existing .gitignore and project conventions) and that binary files (images, fonts, etc.) are properly marked as binary.

Changes

  • .gitattributes (new): Standard configuration with:
    • * text=auto eol=lf — normalize all text files to LF
    • Binary file type declarations for images and fonts

Test Plan

  • No behavior change — configuration-only addition
  • All 52 existing tests pass
  • Production build succeeds
  • Does not affect any tracked files (attribute changes apply to future checkouts/commits)

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 23, 2026 8:03pm

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.

1 participant