aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..2ea4dfb
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,21 @@
+# shell, python and every source file stay lf so they run on linux, macos and wsl
+* text=auto
+*.sh text eol=lf
+*.py text eol=lf
+*.c text eol=lf
+*.h text eol=lf
+*.S text eol=lf
+*.ld text eol=lf
+*.zc text eol=lf
+*.js text eol=lf
+*.ts text eol=lf
+*.json text eol=lf
+*.md text eol=lf
+# cmd.exe needs crlf for labels and goto to be reliable
+*.bat text eol=crlf
+*.cmd text eol=crlf
+*.ps1 text eol=crlf
+# built binaries
+*.exe binary
+*.html text eol=lf
+*.wasm binary