Skip to content

Set new-lines default type to platform #784

@Andrej730

Description

@Andrej730

As I understand, default value unix was chosen to avoid problems on unix systems.
Which works well for everyone from Unix, but for Windows users it might be just confusing.

Just as CRLF can create problems on Unix, LF can create problems on Windows.
Nowadays, git for Windows by default has core.autocrlf=true - meaning git automatically converts files to CRLF just for local use, but CRLF not commited to repo and repo still stores them as LF.
So files on Windows are typically CRLF, which helps avoid problems, but doesn't create a headache for anyone else on the repo, because repo line-ending format is defined separately
And Windows user would try to accomodate unix new-lines type, then they might end up fighting against autocrlf and there wouldn't be any benefit from this.

The proposal is to switch default type to platform.

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