Skip to content

Commit

Permalink
Merge pull request #76 from packagist/git-attributes
Browse files Browse the repository at this point in the history
Git: define attributes to avoid adding test/config files to dists
  • Loading branch information
pscheit committed Mar 8, 2024
2 parents c50614e + 67193f8 commit 403f4a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Auto-detect text files, ensure they use LF.
* text=auto eol=lf

# These files are always considered text and should use LF.
# See core.whitespace @ http://git-scm.com/docs/git-config for whitespace flags.
*.php text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 diff=php
*.json text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4

# Ignore these files in GitHub dists and `git archive` actions.
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
/gh-md-toc export-ignore
File renamed without changes.

0 comments on commit 403f4a7

Please sign in to comment.