Skip to content

Commit 80dfe20

Browse files
committed
Add .gitattributes
From [GitAttributes for PHP Composer Projects](https://php.watch/articles/composer-gitattributes)
1 parent f622689 commit 80dfe20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# https://php.watch/articles/composer-gitattributes
2+
3+
# Exclude build/test files from archive
4+
/.github export-ignore
5+
/tests export-ignore
6+
/.editorconfig export-ignore
7+
/.gitattributes export-ignore
8+
/.gitignore export-ignore
9+
/phpunit.xml.dist export-ignore
10+
11+
# Configure diff output for .php and .phar files.
12+
*.php diff=php
13+
*.phar -diff

0 commit comments

Comments
 (0)