summaryrefslogtreecommitdiffstats
path: root/tests/.gitattributes
diff options
context:
space:
mode:
authorRoy Ivy III <rivy.dev@gmail.com>2020-05-26 23:33:15 -0500
committerDavid Peter <sharkdp@users.noreply.github.com>2020-06-03 09:13:47 +0200
commit0ef792ac1e127dcf919e77908035faf63616352b (patch)
treed5b03731f0254edf2ce55e679c3cfa736771539c /tests/.gitattributes
parent01af28b781889a4cc52f563a6c4375422f48a336 (diff)
Tests ~ (fix) always check out test fixtures with known LF line endings
- fixes windows test failures - avoids `git` platform-dependent conversion of line endings for checkout of test fixtures (*tests/examples/...*)
Diffstat (limited to 'tests/.gitattributes')
-rw-r--r--tests/.gitattributes8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/.gitattributes b/tests/.gitattributes
index 2cab29b4..ed47e9f2 100644
--- a/tests/.gitattributes
+++ b/tests/.gitattributes
@@ -1,3 +1,11 @@
+# force LF EOLs for test fixtures
+examples/** text=auto eol=lf
+snapshots/** text=auto eol=lf
+
+# BAT/CMD files always need CRLF EOLs
+*.[Bb][Aa][Tt] text eol=crlf
+*.[Cc][Mm][Dd] text eol=crlf
+
examples/* linguist-vendored
snapshots/* linguist-vendored
benchmarks/* linguist-vendored