Skip to content

Pin line endings to LF - #25

Merged
dhanjit merged 1 commit into
masterfrom
line-endings-policy
Sep 4, 2026
Merged

Pin line endings to LF#25
dhanjit merged 1 commit into
masterfrom
line-endings-policy

Conversation

@dhanjit

@dhanjit dhanjit commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Part of the sweep in dhanjit/brain#133. Adds the same .gitattributes every other repo now carries:

* text=auto eol=lf

core.autocrlf is a machine setting and does not travel with a clone; this does. Without it git normalises nothing and whatever bytes the editor wrote get committed verbatim.

No renormalisation is needed here — the 29 CRLF blobs this repo used to hold were all under node_modules/, and 43c75e3 already removed that from tracking. Every remaining blob on master is LF.

This is a PR rather than a direct push because master requires one. Note the branch rule also requires verified signatures, and this commit will show as Unverified: the SSH signing key in ~/.gitconfig (user.signingkey = ~/.ssh/id_ed25519.pub, gpg.format = ssh) is not registered on the GitHub account as a signing key, so the API reports unknown_key. That affects every locally-signed commit, not just this one. Adding the public key under Settings → SSH and GPG keys → New SSH key with key type Signing Key fixes it retroactively for commits already pushed.

core.autocrlf is a machine setting and does not travel with the repo. With it
off and no .gitattributes, git normalises nothing and whatever bytes the editor
wrote get committed verbatim. This makes the rule part of the repo instead.
@dhanjit
dhanjit merged commit 8c63e3e into master Sep 4, 2026
@dhanjit
dhanjit deleted the line-endings-policy branch September 4, 2026 15:04
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