Skip to content

Commit

Permalink
Add .gitattributes for export-ignore and diff customization
Browse files Browse the repository at this point in the history
This commit introduces a .gitattributes file to exclude unnecessary files from being included in archives, such as build and test files. Additionally, it configures custom diff rules for .php and .phar files to improve the clarity of diffs.
  • Loading branch information
koriym committed Nov 3, 2024
1 parent a36449d commit d086a73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Exclude build/test files from archive.
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/php-require-checker.config.json export-ignore
/php.ini export-ignore
/codecov.yml export-ignore
/phpcs.xml export-ignore
/phpmd.xml export-ignore
/phpstan.neon export-ignore
/psalm.xml export-ignore
/phpunit.xml.dist export-ignore

# Configure diff output for .php and .phar files.
*.php diff=php
*.phar -diff

0 comments on commit d086a73

Please sign in to comment.