Skip to content

Normalize line endings via .gitattributes (EOL-only)#1028

Merged
erikdarlingdata merged 2 commits into
devfrom
feature/gitattributes-normalize
May 30, 2026
Merged

Normalize line endings via .gitattributes (EOL-only)#1028
erikdarlingdata merged 2 commits into
devfrom
feature/gitattributes-normalize

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Normalize line endings via .gitattributes (* text=auto eol=crlf). EOL-only — git diff -w --ignore-cr-at-eol against base is empty; builds + tests unchanged. Fixes the mixed-EOL trap where scripted edits ballooned diffs.

What changed

  • Commit 1: add .gitattributes (* text=auto eol=crlf + explicit binary markers for png/jpg/jpeg/gif/ico/dll/exe/pdb/snk/parquet/zip/duckdb). All binaries actually present in the repo (.png, .jpg, .ico) are covered.
  • Commit 2: git add --renormalize . — 391 files, 116086 insertions / 116086 deletions (symmetric = pure EOL churn). No source content touched.

Proof it's EOL-only

  • git diff -w --ignore-cr-at-eol <base> -- ':!.gitattributes'empty (0 lines).
  • Binary files (.png/.jpg/.ico) byte-identical to base (none in renormalize set, diff --stat empty).
  • Build: clean, 0 warnings / 0 errors before and after.
  • Tests: 396 passed / 0 failed / 0 skipped (Dashboard 40, Lite 310, Installer 46) — identical to baseline.

NOTE: open branches will need a rebase/renormalize after this lands.

🤖 Generated with Claude Code

erikdarlingdata and others added 2 commits May 29, 2026 20:17
Repo had inconsistent per-file line endings (core.autocrlf=false, no
.gitattributes), so scripted edits flipped EOLs and ballooned diffs.
Normalizes text to LF-in-repo / CRLF-checkout; explicit binary markers
prevent text mis-detection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
git add --renormalize . against current dev per the new .gitattributes.
EOL-only: `git diff -w --ignore-cr-at-eol` is empty.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata force-pushed the feature/gitattributes-normalize branch from 535890a to 0f05b06 Compare May 30, 2026 00:18
@erikdarlingdata erikdarlingdata merged commit 95e9f08 into dev May 30, 2026
6 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/gitattributes-normalize branch May 30, 2026 00:28
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