From 12a5fa2add1b04f92aa2a6f7258ff2baab75809f Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Tue, 19 Nov 2024 11:49:02 +0100 Subject: [PATCH] use LF line endings for all text files in intellij-community by default (IJI-526) Before, it was recommended to set `core.autocrlf` Git option to `input` before checking out the repository, and most of the files in the repository use LF line endings. However, it was easier to forget changing the option. In that case you will get CRLF line endings on Windows, and it leads to problems in some cases (see IDEA-297137, for example). Now usage of LF line endings in the working tree is forced via the .gitattributes file. If it's necessary to use CRLF line endings in a specific file, it must be specified explicitly by via a .gitattributes file. GitOrigin-RevId: 7ac559d8f3ec32f2a37c01937d233e26f821c664 --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 75cea2fd4588..4d77a309bce3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ # keep this the first line in the file -* text=auto +* text=auto eol=lf # Do not touch line endings, but show diff .idea/libraries/rd* -text