Skip to content

Commit 403f4a7

Browse files
authored
Merge pull request #76 from packagist/git-attributes
Git: define attributes to avoid adding test/config files to dists
2 parents c50614e + 67193f8 commit 403f4a7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: .gitattributes

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Auto-detect text files, ensure they use LF.
2+
* text=auto eol=lf
3+
4+
# These files are always considered text and should use LF.
5+
# See core.whitespace @ http://git-scm.com/docs/git-config for whitespace flags.
6+
*.php text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 diff=php
7+
*.json text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
8+
9+
# Ignore these files in GitHub dists and `git archive` actions.
10+
/.gitattributes export-ignore
11+
/.github export-ignore
12+
/.gitignore export-ignore
13+
/.php-cs-fixer.php export-ignore
14+
/phpstan.neon.dist export-ignore
15+
/phpstan-baseline.neon export-ignore
16+
/phpunit.xml.dist export-ignore
17+
/tests export-ignore
18+
/gh-md-toc export-ignore

Diff for: phpstan.neon renamed to phpstan.neon.dist

File renamed without changes.

0 commit comments

Comments
 (0)