git: add .gitattributes file to normalize line endings for new added text files
authorHenning Westerholt <hw@skalatan.de>
Mon, 9 Sep 2019 19:29:18 +0000 (21:29 +0200)
committerHenning Westerholt <hw@skalatan.de>
Mon, 9 Sep 2019 19:29:18 +0000 (21:29 +0200)
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..4b13bce
--- /dev/null
@@ -0,0 +1,31 @@
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+#
+# scripts
+*.sh text
+*.py text
+*.pl text
+# source code
+*.c text
+*.h text
+*.cpp
+# documentation
+*.xml text
+*.xsl text
+*.xslt text
+README text
+Changelog text
+*.md text
+# build and packaging
+Makefile* text
+*.init text
+*.service text
+*.spec text
+*.sysconfig text
+*.default text
+*.tmpfiles text
+*.lintian-overrides text
+*.in text
+changelog text
+control text
+copyright text