Skip to content

Commit

Permalink
.gitattributes: various small updates
Browse files Browse the repository at this point in the history
* Add `.editorconfig` to the files to be `export-ignore`d.
* Add docs explaining what's being done.
* Align the export-ignore's.
  • Loading branch information
jrfnl committed Oct 29, 2024
1 parent e8e9939 commit 5d0e196
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
.github/ export-ignore
build/ export-ignore
docs/ export-ignore
examples/ export-ignore
tests/ export-ignore
.codecov.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.phpcs.xml.dist export-ignore
phpdoc.dist.xml export-ignore
phpunit.xml.dist export-ignore
#
# Exclude these files from release archives.
# This will also make them unavailable when using Composer with `--prefer-dist`.
# If you develop for this repo using Composer, use `--prefer-source`.
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
# https://blog.madewithlove.be/post/gitattributes/
#
.github/ export-ignore
build/ export-ignore
docs/ export-ignore
examples/ export-ignore
tests/ export-ignore
.codecov.yml export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.phpcs.xml.dist export-ignore
phpdoc.dist.xml export-ignore
phpunit.xml.dist export-ignore
phpunit10.xml.dist export-ignore

#
# Auto detect text files and perform LF normalization
# https://pablorsk.medium.com/be-a-git-ninja-the-gitattributes-file-e58c07c9e915
#
* text=auto

0 comments on commit 5d0e196

Please sign in to comment.