Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Simplify and clean-up .gitattributes #838

Merged
merged 2 commits into from
Jun 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 14 additions & 53 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,55 +1,16 @@
# Define the line ending behavior of the different file extensions
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
* text eol=lf

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.php text
*.default text
*.ctp text
*.sql text
*.md text
*.po text
*.js text
*.css linguist-vendored
*.scss linguist-vendored
*.ini text
*.properties text
*.txt text
*.xml text
*.yml text
.htaccess text

# Declare files that will always have CRLF line endings on checkout.
*.bat eol=crlf

# Declare files that will always have LF line endings on checkout.
*.pem eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.mo binary
*.pdf binary
*.phar binary
# font files
*.otf binary
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary

# Exclude unused files
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
/.github export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.styleci.yml export-ignore
CODE_OF_CONDUCT.md export-ignore
phpunit.xml export-ignore
CONTRIBUTING.md export-ignore
CONTRIBUTORS.txt export-ignore
FUNDING.md export-ignore
phpunit.xml.dist export-ignore
screenshot.png export-ignore
screenshot-billable.png export-ignore