diff --git a/.gitattributes b/.gitattributes index a2e05e750..c98ae8a87 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,28 @@ docs/* linguist-documentation # this for files that must keep LF endings, even on Windows. * text eol=lf +# ------------------------------------------------------------------------------ +# All the files and directories that can be excluded from dist, +# we could have a more clean vendor/ +# +# So when someone will install that package through with --prefer-dist option, +# all the files and directories listed in .gitattributes file will be excluded. +# This could have a big impact on big deployments and/or testing. +# ------------------------------------------------------------------------------ + +# /.github export-ignore +# /tests export-ignore +# /build export-ignore +# /docs export-ignore +# /.cs.php export-ignore +# /.editorconfig export-ignore +# /.gitattributes export-ignore +# /.gitignore export-ignore +# /.scrutinizer.* export-ignore +# /phpcs.xml export-ignore +# /phpstan.neon export-ignore +# /phpunit.xml export-ignore + # Define binary file attributes. # - Do not treat them as text. # - Include binary diff in patches instead of "binary files differ." @@ -17,9 +39,12 @@ docs/* linguist-documentation *.gif binary *.ico binary *.jpg binary +*.jpeg binary *.png binary -*.phar binary *.zip binary +*.gif binary +*.ico binary +*.phar binary *.gz binary *.otf binary *.eot binary