chore: add .gitattributes for line endings and export-ignore rules

This file sets default behavior for line endings and specifies files to exclude from Composer package archives.
This commit is contained in:
Jérémy Munsch 2026-11-03 16:16:49 +01:00
parent 92b8a7b7f1
commit 839b092b24
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

22
.gitattributes vendored Normal file
View file

@ -0,0 +1,22 @@
# Set default behavior for line endings and diffs
* text=auto eol=lf
*.php text diff=php
# Exclude dev, test, and CI files from Composer package archives (git archive)
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitlab-ci.yml export-ignore
/.github export-ignore
/.vscode export-ignore
/build export-ignore
/tests export-ignore
/phpcs.xml export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml export-ignore
/phpunit.xml.dist export-ignore
/pint.json export-ignore