aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-02-05 16:17:30 +0000
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-02-05 16:17:30 +0000
commitb55ec9fa21fa8bf581a5f2227dc5628c99b97c61 (patch)
tree93dc82ef40dbdd75af9b7a435c356a5f73657e50 /.gitattributes
parenta1e1f37cae464293221559c33433e336c02d7f5e (diff)
downloadgitinfo-b55ec9fa21fa8bf581a5f2227dc5628c99b97c61.tar
gitinfo-b55ec9fa21fa8bf581a5f2227dc5628c99b97c61.tar.gz
gitinfo-b55ec9fa21fa8bf581a5f2227dc5628c99b97c61.tar.bz2
gitinfo-b55ec9fa21fa8bf581a5f2227dc5628c99b97c61.tar.xz
gitinfo-b55ec9fa21fa8bf581a5f2227dc5628c99b97c61.zip
add .gitattributes and strip CRLF from schema loading
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..e644653
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+# Ensure consistent line endings (LF) for all text files
+* text=auto eol=lf
+
+# Explicitly mark certain files as text
+*.md text
+*.json text
+*.jsonc text
+*.gitinfo text
+*.yml text
+*.yaml text
+*.js text
+*.ps1 text
+*.sh text eol=lf
+
+# Shell scripts must always use LF
+validators/bash/*.sh text eol=lf