Skip to content

README.md is stored with CRLF line endings while every other file is LF, so one-line edits show as whole-file diffs #199

Description

@dajiaohuang

README.md is stored with CRLF line endings, while every other tracked file is LF. Because of that, normal edit PRs show up as whole-file rewrites.

Evidence on current main (57f05da):

Contributors with core.autocrlf=true (the Windows default) will hit this on any README edit, because Git normalizes the committed file to LF while the stored blob is CRLF. This also makes review and merge conflict resolution much harder than the actual change warrants.

Suggested fix, if you want it: normalize README.md to LF to match the rest of the repo, and add a .gitattributes rule such as *.md text eol=lf so it stays consistent. It rewrites every line once, but after that one-line changes produce one-line diffs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions