]> git.lizzy.rs Git - rust.git/blobdiff - .gitattributes
Add `Ipv6Addr::is_unicast`
[rust.git] / .gitattributes
index 91df4f0eb18dcf3b6aa8aa1686cd7110ebe97fbb..82599b1450386719fab9e732cc3502d342e4e850 100644 (file)
@@ -1,7 +1,26 @@
+[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
+
 * text=auto eol=lf
-tests/source/issue-3494/crlf.rs -text
-tests/source/comment_crlf_newline.rs -text
-tests/source/configs/enum_discrim_align_threshold/40.rs -text
-tests/target/issue-3494/crlf.rs -text
-tests/target/comment_crlf_newline.rs -text
-tests/target/configs/enum_discrim_align_threshold/40.rs -text
+*.cpp rust
+*.h rust
+*.rs rust diff=rust
+*.fixed linguist-language=Rust
+*.mir linguist-language=Rust
+src/etc/installer/gfx/* binary
+src/vendor/** -text
+Cargo.lock linguist-generated=false
+config.toml.example linguist-language=TOML
+
+# Older git versions try to fix line endings on images and fonts, this prevents it.
+*.png binary
+*.ico binary
+*.woff binary
+*.woff2 binary
+
+# Needed as part of converting rustfmt to a subtree, can hopefully be removed later.
+src/tools/rustfmt/tests/source/issue-3494/crlf.rs -text
+src/tools/rustfmt/tests/source/comment_crlf_newline.rs -text
+src/tools/rustfmt/tests/source/configs/enum_discrim_align_threshold/40.rs -text
+src/tools/rustfmt/tests/target/issue-3494/crlf.rs -text
+src/tools/rustfmt/tests/target/comment_crlf_newline.rs -text
+src/tools/rustfmt/tests/target/configs/enum_discrim_align_threshold/40.rs -text