Skip to content

chore: normalize line endings with .gitattributes - #442

Merged
manovotny merged 1 commit into
mainfrom
normalize-line-endings
Jul 18, 2026
Merged

chore: normalize line endings with .gitattributes#442
manovotny merged 1 commit into
mainfrom
normalize-line-endings

Conversation

@manovotny

Copy link
Copy Markdown
Contributor

The repo currently has mixed line endings per file — some files CRLF (root README, clerk_flutter/pubspec.yaml, the generated localizations, a few source files), most LF — which shows up as noise in unrelated diffs (bit us in #433).

This adds * text=auto to .gitattributes (keeping the existing linguist rule) and renormalizes in the same commit, so it never comes up again:

  • In-repo content becomes uniformly LF; Windows contributors still get CRLF working copies via core.autocrlf
  • 17 files renormalize — the change is whitespace-only: git diff -w for this commit is empty, and the whitespace-hidden diff shows nothing
  • Any tool that writes CRLF in the future gets silently corrected at the next commit
  • Binaries (screenshots etc.) are untouched — git's binary detection handles them

Best merged when no long-lived branches are in flight, since open branches touching these files can see line-ending conflicts on rebase.

🤖 Generated with Claude Code

Adds '* text=auto' so git stores all text files with LF line endings
(contributors on Windows still get CRLF working copies via autocrlf),
and renormalizes the 17 files that were committed with CRLF or mixed
endings. Whitespace-only: 'git diff -w' for this commit is empty.

Prevents the per-file line-ending drift that made recent PRs noisier
than their content.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@manovotny
manovotny marked this pull request as ready for review July 17, 2026 21:33

@MarkOSullivan94 MarkOSullivan94 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@manovotny
manovotny merged commit 1a172b9 into main Jul 18, 2026
2 checks passed
@manovotny
manovotny deleted the normalize-line-endings branch July 18, 2026 15:53
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