aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitattributes13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..21fa5e9
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,13 @@
+# Text files are stored and checked out with LF, regardless of the checkout
+# platform's core.autocrlf. Several test harnesses lift functions out of the
+# SPA source "as text" by searching for a literal "\n}\n" — CRLF from a
+# Windows checkout (core.autocrlf=true) breaks that search silently, since
+# the newline right before/after the brace is no longer a bare "\n". Forcing
+# LF here fixes the environment to match what the tests already assume,
+# rather than teaching every such search to tolerate "\r?\n".
+* text=auto eol=lf
+
+# Windows-native scripts keep their conventional CRLF.
+*.bat text eol=crlf
+*.cmd text eol=crlf
+*.ps1 text eol=crlf