]> git.openstreetmap.org Git - rails.git/commitdiff
Add gitattribute to force lf line endings
authorGrant Slater <git@firefishy.com>
Tue, 7 Sep 2021 09:46:29 +0000 (10:46 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 7 Sep 2021 09:55:01 +0000 (10:55 +0100)
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..5be0fcd
--- /dev/null
@@ -0,0 +1,17 @@
+# text=auto is only correctly supported in git 2.10.0
+#  https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.txt#L248
+# * text=auto eol=lf
+*.sh text eol=lf
+*.sql text eol=lf
+*.rb text eol=lf
+*.erb text eol=lf
+*.json text eol=lf
+*.yml text eol=lf
+*.builder text eol=lf
+*.js text eol=lf
+*.jbuilder text eol=lf
+*.svg text eol=lf
+*.css text eol=lf
+*.scss text eol=lf
+*.png binary
+*.gif binary