summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 08:23:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 08:23:48 (GMT)
commit96e0a23ce62edd632066a4a355e2eb2960c16c67 (patch)
treec6eeb80d351c6eb58581ed719af356a7706ef77b /.gitattributes
parent355ce624c0d79439fafb96eadcbc19380e8a4e9f (diff)
downloadtcl-96e0a23ce62edd632066a4a355e2eb2960c16c67.zip
tcl-96e0a23ce62edd632066a4a355e2eb2960c16c67.tar.gz
tcl-96e0a23ce62edd632066a4a355e2eb2960c16c67.tar.bz2
Add .gitattributes and .gitignore files, hopefully helping checking in/out with the correct line-endings when transfering in/out GIT.
Diffstat (limited to '.gitattributes')
-rwxr-xr-x.gitattributes37
1 files changed, 37 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100755
index 0000000..82bed50
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,37 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text eol=lf
+
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+*.3 text
+*.c text
+*.css text
+*.enc text
+*.h text
+*.htm text
+*.html text
+*.java text
+*.js text
+*.json text
+*.n text
+*.svg text
+*.ts text
+*.tcl text
+*.test text
+
+# Declare files that will always have CRLF line endings on checkout.
+*.bat text eol=crlf
+*.sln text eol=crlf
+*.vc text eol=crlf
+
+# Denote all files that are truly binary and should not be modified.
+*.a binary
+*.dll binary
+*.exe binary
+*.gif binary
+*.jpg binary
+*.lib binary
+*.pdf binary
+*.png binary
+*.xlsx binary
+*.zip binary