Skip to content

One-Time Normalize C# Line Endings #283

@lookatmike

Description

@lookatmike

Right now it's a little challenging to contribute on the Csharp side of things due to this line in .gitattributes:

*.cs text diff=csharp

The text directive there forces all *.cs line endings to LF upon commit (more here). No problem with that, but all those files are already committed with CRLF line endings, so the next commit to any them will appear in the diff as though every line in the file changed.

There's a process you can run through outlined here that's a one-time thing to get all the line endings on the same page, and then further commits will behave as expected. I'd submit a PR for that but it's probably something best coordinated by the maintainer since it will end up touching around 900 files.

Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions