summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-01-27 23:28:05 +0300
committerDan Allen <dan.j.allen@gmail.com>2020-01-27 13:28:05 -0700
commit4bec0c325ff61de89fdcb84a3a23d773b9a12727 (patch)
treea69393c6df0a1e2423fbd45381d815a3637e050c /.gitattributes
parent7ce5d9dd03af6e08912f321da6df23bd1bf9ecfd (diff)
Disable automatic EOL on git for Windows (PR #1523)
Git for Windows performs automatic LF->CRLF conversion for text files by default [1] when checking out the files to the worktree. This file disables that behavior. [1]: https://github.com/git-for-windows/build-extra/blob/master/git-extra/git-extra.install#L9
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..bc83b5af
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+/*file eol=lf
+/bin/* eol=lf
+*.adoc eol=lf
+*.pdf -text
+*.rb eol=lf
+*.svg eol=lf
+*.yml eol=lf