Skip to content

Commit 1bc364b

Browse files
tablackburnclaude
andauthored
chore: pin line endings to LF and renormalize (#49)
* chore: pin line endings to LF via .gitattributes The previous `* -crlf` rule only disabled CRLF conversion at checkout (files kept whatever endings they had on commit) but didn't coerce a single convention, leaving the index mixed: some files LF, others CRLF. With Windows clones using core.autocrlf=true and tooling that writes LF (most editors and AI agents), this surfaces as "LF will be replaced by CRLF the next time Git touches it" warnings on every commit. Pin everything to LF in both the repo and the working tree. PowerShell on Windows handles LF fine. This commit only changes .gitattributes; the bulk renormalize lands in the next commit (so it can be added to .git-blame-ignore-revs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: renormalize line endings to LF Mechanical follow-up to the .gitattributes pin in the previous commit. git add --renormalize . converts all CRLF text files in the index to LF; content is byte-identical, only line endings change. Touches 210 files. Added to .git-blame-ignore-revs in the next commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: add .git-blame-ignore-revs for the renormalize commit git blame and the GitHub web UI both honor .git-blame-ignore-revs at the repo root. The previous commit was pure line-ending churn (no content change), so blaming through it is noise — this entry redirects blame to the actual content author. Local clones need a one-time: git config blame.ignoreRevsFile .git-blame-ignore-revs GitHub picks it up automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cc3d14e commit 1bc364b

212 files changed

Lines changed: 48368 additions & 48349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Revisions to ignore when running git blame.
2+
#
3+
# Configure your local clone with:
4+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
5+
#
6+
# GitHub's web UI uses this file automatically.
7+
8+
# chore: renormalize line endings to LF (210 files, content unchanged)
9+
4096d36b6b9a24f6bd23029573337449ea1b8e33

.gitattributes

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
* -crlf
1+
# Normalize line endings to LF in both the repo and the working tree, regardless of
2+
# the contributor's global core.autocrlf setting. PowerShell on Windows handles LF
3+
# fine. Without this, Windows clones with core.autocrlf=true emit "LF will be
4+
# replaced by CRLF the next time Git touches it" warnings on every commit when
5+
# files are edited by tooling that writes LF (most editors and AI agents do).
6+
#
7+
# Replaces the older `* -crlf` rule, which only disabled CRLF conversion (so
8+
# files kept whatever endings they had on commit) but did not coerce a single
9+
# convention. The renormalize commit immediately following this change converts
10+
# the repo's mixed endings to LF — see .git-blame-ignore-revs.
11+
* text=auto eol=lf

0 commit comments

Comments
 (0)