Skip to content

fix: add eol=lf policy to .gitattributes so Windows checkouts stay clean - #1994

Open
olaservo wants to merge 1 commit into
v2/mainfrom
v2/fix/1940-gitattributes-eol
Open

fix: add eol=lf policy to .gitattributes so Windows checkouts stay clean#1994
olaservo wants to merge 1 commit into
v2/mainfrom
v2/fix/1940-gitattributes-eol

Conversation

@olaservo

Copy link
Copy Markdown
Member

Closes #1940

One line: * text=auto eol=lf. Windows worktrees now materialize LF, agreeing with prettier's lf default, which kills the phantom-modified-files class. The index is already fully LF-normalized, so renormalization was a verified no-op — this PR touches only .gitattributes (PNGs auto-detect as binary; nothing in the repo needs CRLF; CI is ubuntu-only and unaffected). Full root-cause in the issue comment.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@olaservo olaservo added the v2 Issues and PRs for v2 label Aug 12, 2026
@olaservo
olaservo marked this pull request as ready for review August 13, 2026 02:01
@olaservo
olaservo requested a balanced review from Copilot August 13, 2026 04:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a repository-wide LF policy to prevent phantom file modifications on Windows.

Changes:

  • Enforces LF line endings for automatically detected text files.
  • Preserves the existing lockfile Linguist configuration.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants