From 1b71bc9008ad2b07836730426680da1a66c18ab4 Mon Sep 17 00:00:00 2001 From: Andrej Rypo Date: Wed, 24 Apr 2024 16:42:28 +0200 Subject: [PATCH] Exclude test and build files from release archives (patched) --- .gitattributes | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b86c3c6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,20 @@ +# +# Documentation: +# https://git-scm.com/docs/gitattributes +# + +# Exclude build/test files from archive +/.github export-ignore +/tests export-ignore +/.editorconfig export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore + +# Configure diff output for .php and .phar files. +*.php diff=php +*.phar -diff + +# +# This file contains rules suggested by the following article: +# https://php.watch/articles/composer-gitattributes +#