Skip to content

Commit bcede6f

Browse files
committed
.gitattributes: various readability improvements
... as well as adding documentation to make it more straight-forward to understand what the file does and why.
1 parent 93700fb commit bcede6f

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.gitattributes

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1-
.cspell.json export-ignore
2-
.gitattributes export-ignore
3-
.github/ export-ignore
4-
.gitignore export-ignore
5-
phpcs.xml.dist export-ignore
6-
phpstan.neon.dist export-ignore
7-
phpunit.xml.dist export-ignore
8-
scripts/ export-ignore
9-
src/Standards/**/Tests export-ignore
10-
tests/ export-ignore
1+
#
2+
# Exclude these files from release archives.
3+
# This will also make them unavailable when using Composer with `--prefer-dist`.
4+
# If you develop for this repo using Composer, use `--prefer-source`.
5+
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
6+
# https://blog.madewithlove.be/post/gitattributes/
7+
#
8+
.github/ export-ignore
9+
scripts/ export-ignore
10+
src/Standards/**/Tests/ export-ignore
11+
tests/ export-ignore
12+
.cspell.json export-ignore
13+
.gitattributes export-ignore
14+
.gitignore export-ignore
15+
phpcs.xml.dist export-ignore
16+
phpstan.neon.dist export-ignore
17+
phpunit.xml.dist export-ignore
1118

19+
#
1220
# Declare files that should always have CRLF line endings on checkout.
21+
#
1322
*WinTest.inc text eol=crlf
1423
*WinTest.php text eol=crlf
1524
src/Standards/Generic/Tests/Files/LineEndingsUnitTest*.inc text eol=crlf

0 commit comments

Comments
 (0)