Skip to content

chore: pin line endings to LF via .gitattributes#13

Merged
tablackburn merged 1 commit into
mainfrom
chore/normalize-line-endings-to-lf
May 7, 2026
Merged

chore: pin line endings to LF via .gitattributes#13
tablackburn merged 1 commit into
mainfrom
chore/normalize-line-endings-to-lf

Conversation

@tablackburn

@tablackburn tablackburn commented May 6, 2026

Copy link
Copy Markdown
Owner

Summary

Windows clones with global core.autocrlf=true rewrite the working tree to CRLF on checkout. Subsequent edits made through tooling that writes LF (most editors and AI agents do) trigger LF will be replaced by CRLF the next time Git touches it warnings on every commit.

Pinning eol=lf in .gitattributes overrides the contributor's global autocrlf setting for this repo and silences the warning. PowerShell on Windows handles LF fine.

What changed

  • New .gitattributes file with * text=auto eol=lf
  • One file (.github/workflows/PublishModuleToPowerShellGallery.yaml) renormalized from CRLF to LF — content unchanged

Context

This is part of a sweep across tablackburn/* non-fork repos to apply the same fix. Already merged or pending in JsmOperations, PowerShellModuleTemplate (#23).

Test plan

  • CI passes
  • No new warnings on subsequent commits

Verified 2026-05-10 by test commit on local clone (core.autocrlf=true, branch chore/normalize-line-endings-to-lf at 0d7342a): wrote LF edit to README.md, ran git add — the original LF will be replaced by CRLF warning is silenced. A new transitional CRLF will be replaced by LF warning appears (working tree was checked out as CRLF before .gitattributes landed) and self-resolves once the file is renormalized. PR's intended fix is in place; same transitional state will exist across the LF-pin sweep until clones are renormalized.

🤖 Generated with Claude Code

Windows clones with global core.autocrlf=true rewrite the working tree
to CRLF on checkout. Subsequent edits made through tooling that writes
LF (most editors and AI agents do) trigger 'LF will be replaced by CRLF
the next time Git touches it' warnings on every commit.

Pinning eol=lf in .gitattributes overrides the contributor's global
autocrlf setting for this repo and silences the warning. PowerShell on
Windows handles LF fine.

Renormalize touches 1 file with mixed line endings; content unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 6, 2026 22:57
@coderabbitai

coderabbitai Bot commented May 6, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@tablackburn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 32 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4370f123-0257-402e-9ea0-1d409246d50e

📥 Commits

Reviewing files that changed from the base of the PR and between 3646768 and 0d7342a.

📒 Files selected for processing (2)
  • .gitattributes
  • .github/workflows/PublishModuleToPowerShellGallery.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/normalize-line-endings-to-lf

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.

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

This PR standardizes line endings across the repository by introducing a .gitattributes rule that forces LF checkouts, preventing recurring LF will be replaced by CRLF... warnings for contributors on Windows with core.autocrlf=true.

Changes:

  • Add .gitattributes with * text=auto eol=lf to pin LF line endings regardless of contributor Git settings.
  • Renormalize .github/workflows/PublishModuleToPowerShellGallery.yaml from CRLF to LF (no functional/content changes).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/PublishModuleToPowerShellGallery.yaml Line-ending renormalization to LF only; workflow logic unchanged.
.gitattributes Enforces LF line endings on checkout to avoid CRLF/LF churn and commit warnings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tablackburn tablackburn merged commit 9fc0f1e into main May 7, 2026
16 checks passed
@tablackburn tablackburn deleted the chore/normalize-line-endings-to-lf branch May 7, 2026 13:48
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