mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Add .gitattributes
The line endings of text files in this repo are not consistent and some files even have mixed line endings, presumably from being edited with an editor that neither respects a file's existing EOL format nor converts existing line endings on save. This commit adds a .gitattributes file to mark most text files as text in Git, which will cause Git to normalize the line endings in these files to LF internally and to the format specified by the core.eol setting for files in the working tree. This commit only adds .gitattributes and does not change line endings. The following commit normalizes all line endings for files given the `text` attribute by this commit.
This commit is contained in:
31
.gitattributes
vendored
Normal file
31
.gitattributes
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
.editorconfig text
|
||||
.gitattributes text
|
||||
.gitignore text
|
||||
.gitmodules text
|
||||
|
||||
*.txt text
|
||||
|
||||
*.cmake text
|
||||
Makefile text
|
||||
README text
|
||||
|
||||
*.bat text eol=crlf
|
||||
|
||||
*.c text
|
||||
*.cpp text
|
||||
*.h text
|
||||
*.mm text
|
||||
|
||||
*.gradle text
|
||||
*.java text
|
||||
*.mk text
|
||||
|
||||
*.xml text
|
||||
*.html text
|
||||
|
||||
*.json text
|
||||
|
||||
# These files get packaged into ApplicationResources.gpf, so ensure
|
||||
# they get consistent line endings for reproducibility.
|
||||
/ApplicationResourcePatches/**/*.json eol=lf
|
||||
/ApplicationResourcePatches/**/*.txt eol=lf
|
Reference in New Issue
Block a user