Skip to content

chore: define repository line endings#344

Merged
thomhurst merged 1 commit into
mainfrom
issue-342-normalize-line-endings
Jul 21, 2026
Merged

chore: define repository line endings#344
thomhurst merged 1 commit into
mainfrom
issue-342-normalize-line-endings

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Summary

  • Normalize tracked text files to LF through .gitattributes.
  • Preserve CRLF for future Windows batch files and LF for shell scripts.
  • Run git add --renormalize .; tracked blobs were already normalized, so the PR contains no noisy whole-repository rewrite.

Why

Repository-level attributes make checkouts deterministic across platforms and prevent core.autocrlf warnings from obscuring real changes.

Test plan

  • dotnet test TomLonghurst.EnumerableAsyncProcessor.sln -c Release (1,074 passed across net8.0 and net9.0)
  • git diff --cached --check
  • git check-attr text eol -- README.md scripts/AgentLocks.ps1 .gitattributes
  • Commit completed without line-ending warnings

Closes #342

@thomhurst
thomhurst merged commit aa1c5b2 into main Jul 21, 2026
4 checks passed
@greptile-apps

greptile-apps Bot commented Jul 21, 2026

Copy link
Copy Markdown

Greptile Summary

This PR defines consistent repository line endings through .gitattributes. The main changes are:

  • Normalize automatically detected text files to LF.
  • Preserve CRLF for Windows batch and command scripts.
  • Require LF for shell scripts.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.gitattributes Adds repository-wide text normalization with platform-appropriate overrides for batch and shell scripts.

Reviews (1): Last reviewed commit: "chore: define repository line endings" | Re-trigger Greptile

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.

Add .gitattributes and normalize line endings

1 participant