Skip to content

Integrated editor converts line endings to LF #9108

Open
@LukeOwlclaw

Description

@LukeOwlclaw
  • Gitea version (or commit ref): 1.10.0
  • Git version: ?
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

We are using * -text in .gitattributes to avoid any changes when checking in or out from git. This works very well and we do not intend to change this behavior.

We thus have many files with Window line endings committed. When we now use the integrated Gitea editor, all line endings will be replaced with LF.

See this commit:
https://try.gitea.io/Luke/Repo2/commit/a3ef603d463101239513288eb026ed55869e2490

Expected behavior

  • Do not touch lines that were not changed.
  • and use same line ending for new line as in rest of file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions