git: add .gitattributes file to normalize line endings for new added text files

pull/2062/head
Henning Westerholt 3 years ago
parent 162c32a329
commit 6ca88a4df7
  1. 31
      .gitattributes

31
.gitattributes vendored

@ -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
Loading…
Cancel
Save