about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2018-12-02 10:57:56 +0100
committerPhilipp Hansch <dev@phansch.net>2018-12-02 11:05:39 +0100
commit3a7da8b4fa66d08d4da613170ff34bf05bd02e00 (patch)
tree7c4a65ace9730edfccea6c65b4b333667a9822b1
parentc669727df4de8a9b155b4ebd389f56cc68fa3b30 (diff)
downloadrust-3a7da8b4fa66d08d4da613170ff34bf05bd02e00.tar.gz
rust-3a7da8b4fa66d08d4da613170ff34bf05bd02e00.zip
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).
-rw-r--r--.gitattributes4
1 files changed, 4 insertions, 0 deletions
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