From 3a7da8b4fa66d08d4da613170ff34bf05bd02e00 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Sun, 2 Dec 2018 10:57:56 +0100 Subject: [PATCH] Enforce LF lineendings for everything Someone on discord reported issues with UI tests. This should make sure that git never automatically converts lineendings for text files to `CRLF`. They should always be `LF` now. Probably this means that we can stop using dos2unix for #3306, too. Taken from [Rust's .gitattributes file](https://github.com/rust-lang/rust/blob/master/.gitattributes). --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..45bca848f8f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4 + +* text=auto eol=lf +*.rs rust -- 2.44.0