From 5e1950ceff802e2cb5b9714e521fcb294e9d6b46 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 27 Aug 2020 10:25:39 +0900 Subject: [PATCH] chore: force source code and markdown files to use LF line ending (#25134) --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitattributes b/.gitattributes index 9d6933d53b98..88189455c32c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,13 @@ # files to be checked out with LF endings even if core.autocrlf is true. *.patch text eol=lf patches/**/.patches merge=union + +# Source code and markdown files should always use LF as line ending. +*.cc text eol=lf +*.mm text eol=lf +*.h text eol=lf +*.js text eol=lf +*.ts text eol=lf +*.py text eol=lf +*.ps1 text eol=lf +*.md text eol=lf