From 839b092b2492575e0919b95e6c1b8a1ab8add1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 3 Nov 2026 16:16:49 +0100 Subject: [PATCH] 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. --- .gitattributes | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..86bfd83 --- /dev/null +++ b/.gitattributes @@ -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