From 85b405db57c26ed0a02ecc63e730158e5ea80ae9 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sun, 24 Sep 2023 10:11:16 +0200 Subject: [PATCH] Update .gitattributes to current files to keep out from packages We had not updated this file since long ago and there are some new/moved paths to get excluded from distribution when installed as a dependency. --- .gitattributes | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitattributes b/.gitattributes index f21aecb5..f36b2d37 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,19 +1,20 @@ -# Path-based git attributes -# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html - -# Ignore all test and documentation with "export-ignore". -/build export-ignore -/doc export-ignore -/tests export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore -/.php_cs export-ignore -/.travis.dist.yml export-ignore -/.travis.yml export-ignore -/box.json export-ignore -/CHANGELOG.md export-ignore -/CONTRIBUTING.md export-ignore -/Makefile export-ignore -/phpunit.xml.dist export-ignore -/README.md export-ignore -/UPGRADE-*.md export-ignore \ No newline at end of file +# Ignore all these files for release packages. +# Using Composer `--prefer-dist` will not include these files. +# Use `--prefer-source` to include them. +# See https://blog.madewithlove.be/post/gitattributes/ +.gitattributes export-ignore +.gitignore export-ignore +.php-cs-fixer.php export-ignore +.travis.dist.yml export-ignore +.travis.yml export-ignore +CONTRIBUTING.md export-ignore +Makefile export-ignore +README.md export-ignore +box.json export-ignore +gha.dist.yml export-ignore +phpunit.xml.dist export-ignore +psalm.xml export-ignore +/.github export-ignore +/build export-ignore +/docs export-ignore +/tests export-ignore \ No newline at end of file