Skip to content

Update .gitattributes to exclude dev files from composer dist#1626

Open
williamdes wants to merge 2 commits into
schmittjoh:masterfrom
williamdes:williamdes/gitattributes-export-ignore
Open

Update .gitattributes to exclude dev files from composer dist#1626
williamdes wants to merge 2 commits into
schmittjoh:masterfrom
williamdes:williamdes/gitattributes-export-ignore

Conversation

@williamdes
Copy link
Copy Markdown

@williamdes williamdes commented May 20, 2026

This avoids shipping dev/tooling files in the composer dist that aren't needed at runtime.

Last .gitattributes update was cd24e3c (2023-01-06).

Stale entry to remove

  • /phpstan.xml.dist export-ignore - file does not exist upstream (the config is phpstan.neon.dist, which is added below).

Entries to add

Files added or modified since the last .gitattributes update, still shipped in the composer dist:

  • /.run export-ignore - last touched in 1aa5bfa (2021-10-28). PhpStorm run configurations.
  • /doc/ export-ignore - last touched in e5baafe (2025-07-17, Spelling #1604).
  • /phpstan.neon.dist export-ignore - last touched in 3d937ad (2024-11-25).
  • /phpbench.json export-ignore - last touched in 77b8c5f (2023-01-21).
  • /rector.php export-ignore - last touched in 48434b3 (2025-04-02).
  • /CONTRIBUTING.md export-ignore - last touched in f674fba (2026-03-26).
  • /META.md export-ignore - last touched in e5baafe (2025-07-17, Spelling #1604).

Background reading: https://blog.madewithlove.be/post/gitattributes/

This avoids shipping dev/tooling files in the composer dist that aren't needed at runtime.

Last `.gitattributes` update was cd24e3c (2023-01-06).

### Stale entry to remove
- `/phpstan.xml.dist export-ignore` - file does not exist upstream (the config is `phpstan.neon.dist`, which is added below).

### Entries to add
Files added or modified since the last `.gitattributes` update, still shipped in the composer dist:
- `/.run export-ignore` - last touched in 1aa5bfa (2021-10-28). PhpStorm run configurations.
- `/doc/ export-ignore` - last touched in e5baafe (2025-07-17, schmittjoh#1604).
- `/phpstan.neon.dist export-ignore` - last touched in 3d937ad (2024-11-25).
- `/phpbench.json export-ignore` - last touched in 77b8c5f (2023-01-21).
- `/rector.php export-ignore` - last touched in 48434b3 (2025-04-02).
- `/CONTRIBUTING.md export-ignore` - last touched in f674fba (2026-03-26).
- `/META.md export-ignore` - last touched in e5baafe (2025-07-17, schmittjoh#1604).

Background reading: https://blog.madewithlove.be/post/gitattributes/

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@williamdes williamdes force-pushed the williamdes/gitattributes-export-ignore branch from cfa17ac to 6688447 Compare May 22, 2026 16:37
@williamdes
Copy link
Copy Markdown
Author

do you want to exclude the changelog or/and the upgrading notes ?

@scyzoryck
Copy link
Copy Markdown
Collaborator

do you want to exclude the changelog or/and the upgrading notes ?
Thanks for the changes! Let's remove changelog - it is not updated anymore. I would keep upgrading notes in the package.

@williamdes
Copy link
Copy Markdown
Author

Done, it looks like this now:
Screenshot_20260527-084828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants